command line arguments

557 views
Skip to first unread message

kenny

unread,
Jun 13, 2009, 12:29:35 PM6/13/09
to Capistrano
from here: http://ryandaigle.com/archives/2007/6

you could check if a command line argument was supplied via
'configuration[:opt1]'

'configuration' doesn't work anymore. cap complains that it is
undefined. is there any way for me to do this?

thanks,

kenny

Jamis Buck

unread,
Jun 13, 2009, 12:37:31 PM6/13/09
to capis...@googlegroups.com
Yeah, that post describes capistrano 1.x behavior.

The same thing in cap2 would be something like:

p "option1 is #{opt1}" if exists?(:opt1)

- Jamis

Kenneth Stone

unread,
Jun 13, 2009, 12:49:41 PM6/13/09
to capis...@googlegroups.com
thanks!
Reply all
Reply to author
Forward
0 new messages