Skip to content

Instantly share code, notes, and snippets.

@ebouchut
Created October 28, 2014 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebouchut/fcfe1b68e6ef1130b348 to your computer and use it in GitHub Desktop.
Save ebouchut/fcfe1b68e6ef1130b348 to your computer and use it in GitHub Desktop.
Rake Task
namespace :time_travel do
desc "Description of the lightning task"
task :lightning do |t|
# ...
end
desc "Description of the de_lorean task"
task :de_lorean do |t|
# ...
end
desc "Travel back in time to the passed in date, prerequisites: lightning and de_lorean. Usage: rake time_travel:back 2011-07-18 17:00:00"
task :back, [:date] => [:lightning, :de_lorean] do |t, args|
# Do it
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment