Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created September 5, 2012 21:03
Show Gist options
  • Save burtlo/3644722 to your computer and use it in GitHub Desktop.
Save burtlo/3644722 to your computer and use it in GitHub Desktop.
Rakefile to run Event Manager
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