I want to create a custom rake task with supporting multiple arguments.
When finished I want to call the rake task like:
rails conifg:load -i 5 -o "now" ...
How to create them ?
The (rubyonrails guides) says :
task :task_name, [:arg_1] => [:prerequisite_1, :prerequisite_2] do |task, args|
argument_1 = args.arg_1
end
But I dont understand it.