Thanks for the help,
I finally discovered that there is a Capistrano global variable just for
this:
#{local_user}
Cheers, Simon!
El jueves, 5 de junio de 2014 14:42:33 UTC+2, Lee Hambley escribió:
>
> http://ruby-doc.org/stdlib-1.9.3/libdoc/etc/rdoc/Etc.html#method-c-getlogin
>
> Lee Hambley
> --
> http://lee.hambley.name/
> +49 (0) 170 298 5667
>
>
> On 5 June 2014 13:30, Simón Muñoz <[email protected] <javascript:>> wrote:
>
>> Hi all,
>>
>> Do you know if it's possible to access the username running the 'cap
>> deploy' task to use it from a cap task in the Capfile?
>>
>> For example, we need to mark a deploy in newrelic after doing a deploy,
>> so I added a task "mark_deploy" in the capfile that does the work. The
>> problem is that it will be nice to register the user running the 'cap
>> deploy', but for that I need to know the username at the time the "mark"
>> task is invoked.
>>
>> Thanks in advance!
>>
>> --
>> 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] <javascript:>.
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/capistrano/7ee3cb20-4a5b-4e4c-8e30-557ae3e75415%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/capistrano/7ee3cb20-4a5b-4e4c-8e30-557ae3e75415%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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/735787e0-8e77-48a3-a2db-3660545feaaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.