[Rake-devel] Using new Rake arguments

Adam Salter adam.q.salter at gmail.com
Sat Dec 22 23:41:31 EST 2007

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

or even

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 mailing list