Look at the capistrano-ext package -- there's something called "multistage",
which works pretty much exactly the way you want.

Simple example, create:

config/deploy/staging.rb
config/deploy/production.rb

Then:

cap staging deploy
cap production deploy

On Sat, Jul 5, 2008 at 5:58 PM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:

>
> I am curious if I can pass the stage as an argument to capistrano
> commands, rather than duplicating the logic for each stage namespace.
>
> When I tried using OptionsParser it gave me odd results.
>
>
> --
> Anthony Ettinger
> 408-656-2473
> http://anthony.ettinger.name
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to