Created
February 7, 2013 17:37
-
-
Save mhayes/4732639 to your computer and use it in GitHub Desktop.
Passing arguments in a Rakefile
This file contains 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
require 'rake' | |
task :environment do | |
puts "load env..." | |
end | |
desc "This is a test" | |
namespace :migrate do | |
task :cloudfiles, [:arg1] => :environment do |t,args| | |
puts args[:arg1] | |
end | |
end | |
# rake migrate:cloudfiles["mark"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE: Argument passing does NOT appear to work in zsh.