On 14/06/10 12:11, Robin Bowes wrote:
> On 14/06/10 12:09, Simone Carletti wrote:
>> You can use "on :start".
>>
>> on :start, "local:populate_roles"
>
> Simone,
>
> Thanks, that looks like what I need.
...but sadly it doesn't work:
# cap prod deploy:check
triggering start callbacks for `prod'
* executing `local:populate_roles'
/usr/lib/ruby/gems/1.8/gems/capistrano-2.5.18/lib/capistrano/configuration/namespaces.rb:188:in
`method_missing': undefined local variable or method `enum_account' for
#<Capistrano::Configuration::Namespaces::Namespace:0x2b6be2441668>
(NameError)
I omitted to mention in my original post that I'm using multistage; I'm
also using railsless-deploy.
After some experimenting, it seems this works and is what I need:
after 'prod', 'local:populate_roles'
Thanks for pointing me in the right direction.
R.
--
* 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