[Rake-devel] Using new Rake arguments
adam.q.salter at gmail.com
Sat Dec 22 23:41:31 EST 2007
I have seen that Rake has task arguments now. Sounds great and useful.
How do I _actually_ use them? ;)
Some examples would be good.
rake upload[filename1, filename2]
rake autoinstall[dir=abcd, options=123]
and how do I define these task arguments?
task :upload do |file1, file2|
# upload or whatever
task :autoinstall do |args|
options = options.merge(args)
install_dir = args[:dir]
# move etc.
Just threw these together... probably completely off-base.
More information about the Rake-devel