If set with set() it must be fetched with fetch()
Sent from my Nexus 4.
On 5 Mar 2014 14:39, "Gilbert Sinnott" <[email protected]> wrote:
> Great, thank you!
>
> Do I need to run fetch for the shh_options? I am getting undefined here
> too...
>
> On Wednesday, 5 March 2014 12:18:51 UTC, Lee Hambley wrote:
>>
>> If you have found that documented somwehere, it is wrong.
>>
>> set :applicationdir, "/home/#{
>> fetch(:
>> user
>> )
>> }/#{
>> fetch(:
>> application
>> )
>> }"
>>
>> is how it should be.
>>
>> Lee Hambley
>> --
>> http://lee.hambley.name/
>> +49 (0) 170 298 5667
>>
>>
>> On 5 March 2014 13:11, Gilbert Sinnott <[email protected]> wrote:
>>
>>> Hi there,
>>>
>>> These are the first lines of my deploy.rb file:
>>>
>>> set :user, 'gs'
>>> set :domain, 'domain.com'
>>> set :project, 'myproject'
>>> set :application, 'myproject.com'
>>> set :applicationdir, "/home/#{user}/#{application}"
>>>
>>> Logs:
>>>
>>> - undefined local variable or method `user' for main:Object
>>>
>>> Versions:
>>>
>>> - ruby-2.0.0-p353
>>> - Capistrano 3.1
>>> - Rails 4
>>>
>>>
>>> Really strange - I've experimented setting/calling other variables but
>>> can't seem to access them?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Capistrano" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web, visit https://groups.google.com/d/
>>> msgid/capistrano/b2cd036d-d36f-45e6-86c9-04ba0186378d%40googlegroups.com<https://groups.google.com/d/msgid/capistrano/b2cd036d-d36f-45e6-86c9-04ba0186378d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/a37328f1-a6d0-49d1-b345-2a15731f6c45%40googlegroups.com<https://groups.google.com/d/msgid/capistrano/a37328f1-a6d0-49d1-b345-2a15731f6c45%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLWLU1PNWnza5xeSxN0-iwTmw82w%2BvAYmiscg-ZntvNTzw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.