Capistrano like callbacks

40 views
Skip to first unread message

gkochan

unread,
Jul 15, 2011, 10:24:50 AM7/15/11
to Webistrano
Hello everyone!
Is there any way to define capistrano like callbacks: 'before' and
'after' in webistrano? I have a fairly customized capfile in
capistrano and I'd like to port it to webistrano.
Thanks.
Gregory

Jonathan Matthews

unread,
Jul 15, 2011, 5:01:48 PM7/15/11
to webis...@googlegroups.com

Just put them in recipes. Webistrano, as I understand its workings, is
a UI that generates capfiles and invokes capistrano on them; it
doesn't reimplement the cap run itself.

FWIW I've found moving cap->web to be a good excuse to look at
re-implementing the logic to make it more data-driven than is
generally the norm for vanilla capfiles, which is possible now that
you've got the project- and stage-specific configuration variable
inheritance to call upon.

Jonathan
--
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html

gkochan

unread,
Jul 20, 2011, 8:38:46 AM7/20/11
to Webistrano
Hi Jonathan,
thanks for advice. I've put them into recipes and it worked well :)
Now I have another problem. I have a rails 2.3.5 bundler driven
project which I deploy with webistrano. In capistrano I require
'bundler/capistrano' but in webistrano, when I want to require it in
one of my recipes I get "*** defining a task named `install' would
shadow an existing method with that name" error because 'bundler/
capistrano' overrides an 'install' task. Is there a way to solve this?

Thanks.
Gregory

On Jul 15, 11:01 pm, Jonathan Matthews <matthewslev...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages