[capistrano] executing local command?

2011-08-31 Thread justin.wi...@gmail.com
Hi, I have a Capybara smoke test that executes against my production server that I would like to run as part of my deploy process. I was doing this through fileutils and sh %{ cucumber smoketest.feature -p test_deploy } in a rake task, but this doesn't seem to work after I moved to capistrano.

Re: [capistrano] executing local command?

2011-08-31 Thread Lee Hambley
Justin, There's nothing special to do, but consider using something proper such as popen4, or you can try run_locally, which is a helper from Cap. - Lee -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to

[capistrano] Run local commands after scm export/clone

2011-08-31 Thread Serg Podtynnyi
Is there any way/callback to run commands after scm export/clone on localhost before packaging tar.gz PS I am trying to make client side assets precompile for rails 3.1 -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group,

Re: [capistrano] Run local commands after scm export/clone

2011-08-31 Thread Lee Hambley
No, there isn't Serg, we'd be open to adding some in-scm callbacks, if there are some common paradigms which apply to the popular SCMs. -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to

Re: [capistrano] Run local commands after scm export/clone

2011-08-31 Thread Manuel Vázquez Acosta
Hum... It seems nice to have the option to tweek your code before uploading. As a workaround: When I've faced similar needs, I've done it like this: 1. Create a rake task in my codebase that does the processing I want (invoke yui-compress, etc...). Make sure this task is committed. 2. Create

[capistrano] Re: executing local command?

2011-08-31 Thread justin.wi...@gmail.com
Hey Lee, thanks. run_locally works, but doesn't output the results nicely. May explore popen4 if I get some more time. I took your advice and whipped up a gist demonstrating capybara capistrano cucumber smoketest integration: https://gist.github.com/1184354 Which is based on: