Module: Moonshot::Commands::ParentStackOption
Instance Method Summary collapse
Instance Method Details
#parser ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/moonshot/commands/parent_stack_option.rb', line 6 def parser parser = super parser.on('-pPARENT_STACK', '--parent=PARENT_STACK', 'Parent stack to import parameters from') do |v| Moonshot.config.parent_stacks = [v] end parser.on('--parents a,b,c', Array, 'List of parent stacks to import parameters from') do |v| Moonshot.config.parent_stacks = v end end |