> I'm sure there is an easier way to run bunch of commands from a single
> directory, but I don't see it. Can someone shed some light?
>
def run_in_base(cmd)
run "cd #{base}; #{cmd}"
end
or
def with_base(base)
run "cd #{base}"
yield
end
I would also add setting the RAILS_ENV to those methods.
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---