Created
September 5, 2012 21:03
-
-
Save burtlo/3644722 to your computer and use it in GitHub Desktop.
Rakefile to run Event Manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :default => :first | |
def open_file(filename) | |
system "ruby event_manager.rb #{filename}" | |
end | |
desc "open the first event attendees" | |
task :first do | |
open_file "event_attendees.csv" | |
end | |
desc "open the second event attendees" | |
task :second do | |
system "ruby event_manager.rb event_attendees2.csv" | |
end | |
namespace :nested do | |
desc "open the second event attendees, then say done" | |
task :verbose => [ :first, :second ] do | |
puts "All done" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment