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
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
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
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
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
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