This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Rake should do what the user expects

  • Loading branch information...
ben hengst
ben hengst committed Mar 16, 2012
1 parent 6170181 commit c5c1e3ff88451efafd7d37a35e97206935aeccb2
Showing with 2 additions and 0 deletions.
  1. +2 −0 Rakefile
View
@@ -110,6 +110,7 @@ task :new_post, :title do |t, args|
post.puts "---"
end
puts "Created new post: #{filename}"
+ exec "#{ENV['EDITOR']} #{filename}"
rescue Exception => e
puts "Aieeeee! #{e}"
end
@@ -150,6 +151,7 @@ task :new_page, :filename do |t, args|
page.puts "---"
end
puts "Created new page: #{file}"
+ exec "#{ENV['EDITOR']} #{file}"
else
puts "Syntax error: #{args.filename} contains unsupported characters"
end

0 comments on commit c5c1e3f

Please sign in to comment.