I'm working on adding task arguments to Capistrano, but I've hit an area where I'm not sure how to continue and felt it was probably best to throw it out to the Capistrano developers before I go any further.
What I would like is if you could pass arguments to Cap like:
cap upload[dir_a,dir_b,dir_c]
I have done some testing and this seems to work fine, in that Cap says it is unable to find task "upload[dir_a,dir_b,dir_c]". So it should be just a matter of parsing the task name at time of execution of the task...
The problem is how do you pass the arguments to Cap?
again what I would like is:
task :upload(args)
...
end
but this is clearly not possible...
The other problem is that execution of tasks would have to include args so that tasks could be correctly rolled back.
I don't feel this is impossible to achieve, but would like some guidance before I continue further.
Cheers,
-Adam