How do I invoke one Capistrano task from another?
For example:
task :foo do # stuff end task :bar do # INVOKE :foo end
Generally you do this by defining dependencies:
before :bar, :foo