Created
March 24, 2016 09:08
-
-
Save LolWalid/171a5b468d1bdf152a9f to your computer and use it in GitHub Desktop.
Pass argument to rake task
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 :task, [:arg1] => :environment do |_, args| | |
arg1 = args.arg1 || 'default_value' | |
puts arg1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment