Skip to content

Instantly share code, notes, and snippets.

@robertjwhitney
Created February 7, 2013 22:40
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 robertjwhitney/4734877 to your computer and use it in GitHub Desktop.
Save robertjwhitney/4734877 to your computer and use it in GitHub Desktop.
desc "a task with arguments"
task :example, :some_arg do |t, args|
# .. do something with the arguments
end
# > rake -T
# > rake example[some_arg] # a task with arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment