Hello,

according the problem you going to solve.

I found it easy to do with multistage component:
http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage

Thanks.

Stewart wrote:
> Hi,
>
> I am using cap to deploy a php based project. Works great so far. I am
> looking to add a command line param to my script so i can deploy to my
> staging or to live depending on what param I use.  So far i am trying
> to pass in commmand line args via "-s" from the console however cap
> does not seem to be reading the vars. when i do
>
>   Capistrano::Configuration.instance.load do |c|
>         p "option1 is #{c[:location]}" if c[:location]
>   end
>
> Any ideas on what i could be doing wrong?
>
> >
>
>   

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