Has there been any discussion about making server options easier to use in
run statements. I would like to be able to quote these variables directly
in the run commands and not have to use
'find_servers_for_task(current_task).each'. We are using Capistrano in a
legacy environment and whilst we are trying to standardise, in reality this
takes time.
At present, I use a monkey patch which overrides
Capistrano::Command::replace_placeholders.
This allow me to type the following...
task :cat_file do
run 'cat /var/tmp/#{options[:filename]}'
end
When working with multiple steps this makes the Capfile far more readable.
I know using eval is a hole and isn't ideal for a core solution but
something similar to the existing gsub approach (i.e. CAPISTRANO:HOST)
might be easier and more appropriate.
cheers
Paul
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en