Dear all,
I have seen that Rake has task arguments now. Sounds great and useful.
How do I _actually_ use them? ;)
Some examples would be good.
e.g. ??
rake upload[filename1, filename2]
rake autoinstall[dir=abcd, options=123]
and how do I define these task arguments?
I'm hoping
task :upload do |file1, file2|
# upload or whatever
end
or even
task :autoinstall do |args|
options = options.merge(args)
install_dir = args[:dir]
# move etc.
end
Just threw these together... probably completely off-base.
Thanks,
-Adam
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel