lib/hygroscope/cli.rb in hygroscope-1.1.1 vs lib/hygroscope/cli.rb in hygroscope-1.1.2

- old
+ new

@@ -78,15 +78,15 @@ else # No paramset provided, so every parameter is missing! missing = t.parameters.keys end - if options[:existing] + options[:existing].each do |existing| # User specified an existing stack from which to pull outputs and # translate into parameters. Load the existing stack. - e = Hygroscope::Stack.new(options[:existing]) - say_status('info', "Populating parameters from #{options[:existing]} stack", :blue) + e = Hygroscope::Stack.new(existing) + say_status('info', "Populating parameters from #{existing} stack", :blue) # Fill any template parameter that matches an output from the existing # stack, overwriting values from the paramset object. The user will # be prompted to change these if they were not in the paramset or the # --ask option was passed. @@ -174,11 +174,12 @@ aliases: '-p', required: false, desc: 'Name of saved paramset to use (optional)' method_option :existing, aliases: '-e', + type: :array, required: false, - desc: 'Name of an existing stack from which to retrieve outputs as parameters (optional)' + desc: 'Name of one or more existing stacks from which to retrieve outputs as parameters (optional)' method_option :ask, aliases: '-a', type: :boolean, default: false, desc: 'Still prompt for parameters even when using a paramset'