Sorry, sent that too early. I'd like:
set :my_func, lambda { # arbitrary ruby code here }
then
task :after_deploy do
my_func # this runs the lambda in the context of all servers for
this task, not locally
end
The reason I ask for this is because I find myself writing a lot of
little helper ruby scripts, then pushing them out to all the servers
so that I can run them from capistrano. I find ruby much more
friendly for almost all shell tasks once they go beyond the very
simple, especially for things like testing if files exist and the
like. I really don't like trying to switch my brain into bash mode
:).
Of course right now, if you just run ruby from w/i a custom task now,
it just executes in the local scope.
Is something like this possible, maybe using ruby2ruby for sending the
proc to the servers?
- Rob
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---