ruby - Using a rake task that accepts parameters as a prerequisite -


according http://rake.rubyforge.org/files/doc/rakefile_rdoc.html, can create task accepts parameters , has prerequisites:

task :name, [:first_name, :last_name] => [:pre_name] |t, args| 

but if :pre_name task accepts parameters? syntax passing parameters :pre_name when used prerequisite?

it's pretty simple - :pre task receive same parameters original task. need make sure signature similar - instance if first task receives :a,:b :pre task needs receive them well.

see more here: rake params


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -