Skip to content

Commit

Permalink
fix rake file
Browse files Browse the repository at this point in the history
  • Loading branch information
waynezhang committed Dec 26, 2011
1 parent 360f73b commit 57b1cd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
task :default => :generate

desc 'Create new post'
desc 'Create new post with rake "post[post-name]"'
task :post, [:title] do |t, args|
if args.title then
new_post(args.title)
else
puts "rake create post-name"
puts 'rake "post[post-name]"'
end
end

Expand All @@ -19,7 +19,7 @@ task :server => :clean do
`jekyll --server`
end

desc 'Deploy'
desc 'Deploy with rake "depoly[comment]"'
task :deploy, [:comment] => :generate do |t, args|
if args.comment then
`git commit . -m '#{args.comment}' && git push`
Expand Down
7 changes: 4 additions & 3 deletions _posts/2011-12-20-rakefile-for-github-pages.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ tags:

task :default => :generate

desc 'Create new post'
desc 'Create new post with rake "post[post-name]"'
task :post, [:title] do |t, args|
if args.title then
new_post(args.title)
else
puts "rake create post-name"
puts 'rake "post[post-name]"'
end
end

Expand All @@ -29,7 +29,7 @@ tags:
`jekyll --server`
end

desc 'Deploy'
desc 'Deploy with rake "depoly[comment]"'
task :deploy, [:comment] => :generate do |t, args|
if args.comment then
`git commit . -m '#{args.comment}' && git push`
Expand Down Expand Up @@ -63,6 +63,7 @@ tags:


EOS
%x[echo "#{filename}" | pbcopy]
end
puts "created #{filename}"
`git add #{filename}`
Expand Down

0 comments on commit 57b1cd9

Please sign in to comment.