Try using -S (capital s instead of lowercase). This sets a variable
before the recipes are loaded, which is what you want if you're going
to use the variable in deploy.rb. The lowercase option sets a variable
after the recipes are loaded.

On Mon, Mar 30, 2009 at 6:08 PM, Stewart
<[email protected]> wrote:
> 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