How can I access the stage value in Capistrano?

30 views
Skip to first unread message

Haani Niyaz

unread,
Oct 15, 2014, 2:18:50 AM10/15/14
to capis...@googlegroups.com

Hi there,

I would like to get the value of the stage set as below:

cap dev webapp:deploy

Is there way to access the stage value 'dev' in a Capistrano task?




Versions:
  • Ruby - 1.8.7
  • Capistrano - 3.2.1

Lee Hambley

unread,
Oct 15, 2014, 4:33:07 AM10/15/14
to capistrano
fetch(:stage)

--
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 capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/dbafacb7-4b02-4ec8-97d5-a0858ef24b3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages