I also found this to work:
namespace :deploy do
task :before_cold do
run(...)
end
end
On Wed, Oct 29, 2008 at 1:57 AM, Mathias Meyer
<[EMAIL PROTECTED]> wrote:
>
> On Wed, 29 Oct 2008 01:42:17 -0700, Anthony Ettinger wrote:
>
>>
>> I want to add a before_task to deploy:cold (if that's possible)
>>
>> task :mktmp do
>> run("mkdir #{home_path}/tmp")
>> end
>>
> Good thing you can just do that:
>
> before "deploy:cold", "mktmp"
>
> Cheers, Mathias
> --
> http://paperplanes.de
> http://twitter.com/roidrage
>
> >
>
--
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---