Re: [capistrano] How do you call a rake task from a cap deploy.rb file?

2011-06-03 Thread Lee Hambley
Wes, naturally - Cap's DSL was originally styled after rake, it's an easy mistake to make. Depending how you want to do it, you can simply `require` your `Rakefile` in the Cap script, (ensuring of course to include Rake, if that directive is absent from your rakefile), and then you call tasks with

[capistrano] Creating and Using Before/After Hooks

2011-06-03 Thread Dan
While I know that there before/after hooks, I don't know how to create it or add it to the deployment cycle. I've searched the docs but haven't found any explanation on hooks. I'd appreciate clarification on how to create hooks and add them to the deployment cycle. Specifically, after the

Re: [capistrano] Creating and Using Before/After Hooks

2011-06-03 Thread Lee Hambley
Dan: after( 'deploy:update' ) do # My code here end - Lee -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to

[capistrano] Re: Creating and Using Before/After Hooks

2011-06-03 Thread Dan
Lee, Thanks for the snippet. I do have a follow-up question, where should that code go -- 'deploy.rb' or another file? -Dan On Jun 3, 10:21 am, Lee Hambley lee.hamb...@gmail.com wrote: Dan: after( 'deploy:update' ) do   # My code here end - Lee -- * You received this message because

Re: [capistrano] Re: Creating and Using Before/After Hooks

2011-06-03 Thread Lee Hambley
deploy.rb, or if you're using multistage, then in the appropriate stage file. Also, please see the documentation here - a cursory search for After in the API docs revealed this; http://rubydoc.info/github/capistrano/capistrano/master/Capistrano/Configuration/Callbacks:after- perhaps search wasn't

Re: [capistrano] Re: Creating and Using Before/After Hooks

2011-06-03 Thread Lee Hambley
Yep, some of the deep-linking on rubydoc.info is a bit rough, sorry! Dan, it's a problem that there's so many docs, etc and it's all a bit disorganised, Glad to help, enjoy the deploys! On 3 June 2011 19:22, Dan dan.king...@yahoo.com wrote: Thanks for the help, I appreciate it. By the way, the