[Rake-devel] Merge Task Arguments Patch for Rake
Adam Salter
adam.q.salter at gmail.com
Wed Jan 23 01:46:26 EST 2008
Dear all,
I have been wanting to do something like the following with the new
Rake task arguments, but it wasn't previously possible.
task :my_task, :task_arg do |t, args|
options = { :task_arg => "default_val"}
args = options.merge(args)
...
etc.
end
Here is a patch with updated tests to allow the above.
I hope this is considered a good thing to do, as it really makes life
a lot easier when using task arguments.
Cheers,
-Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: merge_task_arguments.patch
Type: application/octet-stream
Size: 2895 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20080123/4c6035bb/attachment.obj
-------------- next part --------------
More information about the Rake-devel
mailing list