summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-02-12 11:35:32 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-02-12 11:35:32 +0000
commitfb704f101ebfdc9be4dcbf0558156c3c3899437b (patch)
tree02fec458f49f13f3d19b0da09edc27a1fc8244cc /Rakefile
parent3c2ac474f20da6baf804e5c51f62c2c8cb19c6eb (diff)
Fix Rakefile.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 44d0628..814c8bc 100644
--- a/Rakefile
+++ b/Rakefile
@@ -20,7 +20,7 @@ namespace :site do
end
desc 'Builds the site so that it can be deployed.'
- task :production => [:clean] do
+ task :production => [:'test_posts:clean', :clean] do
system 'bundle exec jekyll'
end
end
@@ -54,7 +54,7 @@ namespace :test_posts do
desc 'Deletes any test posts.'
task :clean => [:load_config] do
- FileUtils.rm_rf(@config['posts'])
+ FileUtils.rm_rf(@config['posts'] + '/test')
end
desc 'Creates the required posts directory if one does not exist.'
@@ -65,7 +65,7 @@ namespace :test_posts do
private
def save_post(date, title, author, description, categories, test = false)
- template = File.read("templates/post.markdown")
+ template = File.read("lib/templates/post.markdown")
template.gsub!(/:title/, title)
template.gsub!(/:author/, author)
template.gsub!(/:description/, description)