1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Adds an example of how to access the arguments passed to a custom rake task [ci skip]

This commit is contained in:
Mohnish G J 2015-03-16 21:56:03 +05:30
parent a5a4b56029
commit 0b2f8b1cb9

View file

@ -526,8 +526,8 @@ end
To pass arguments to your custom rake task: To pass arguments to your custom rake task:
```ruby ```ruby
task :task_name, [:arg_1] => [:pre_1, :pre_2] do |t, args| task :task_name, [:arg_1] => [:prerequisite_1, :prerequisite_2] do |task, args|
# You can use args from here argument_1 = args.arg_1
end end
``` ```