Sha256: 9ba644e1f757482dfac05c0f1d69f24dbc49cef27741ed849eb6f25ca7b0ea0b

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

require 'sfn'

module Sfn
  class Config
    # Update command configuration
    class Update < Validate

      attribute(
        :apply_stack, String,
        :multiple => true,
        :description => 'Apply outputs from stack to input parameters',
        :short_flag => 'A'
      )
      attribute(
        :parameter, Smash,
        :multiple => true,
        :description => '[DEPRECATED - use `parameters`] Pass template parameters directly (ParamName:ParamValue)',
        :coerce => lambda{|v, inst|
          result = inst.data[:parameter] || Array.new
          case v
          when String
            v.split(',').each do |item|
              result.push(Smash[*item.split(/[=:]/, 2)])
            end
          else
            result.push(v.to_smash)
          end
          {:bogo_multiple => result}
        },
        :short_flag => 'R'
      )
      attribute(
        :parameters, Smash,
        :description => 'Pass template parameters directly',
        :short_flag => 'm'
      )
      attribute(
        :plan, [TrueClass, FalseClass],
        :default => true,
        :description => 'Provide planning information prior to update',
        :short_flag => 'l'
      )
      attribute(
        :compile_parameters, Smash,
        :description => 'Pass template compile time parameters directly',
        :short_flag => 'o'
      )

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sfn-2.1.2 lib/sfn/config/update.rb
sfn-2.1.0 lib/sfn/config/update.rb
sfn-2.0.6 lib/sfn/config/update.rb
sfn-2.0.4 lib/sfn/config/update.rb
sfn-2.0.2 lib/sfn/config/update.rb
sfn-2.0.0 lib/sfn/config/update.rb
sfn-1.2.0 lib/sfn/config/update.rb