Sha256: 3a9a3ceb84b4d266a871dc37a2ba2553babf1a36121d509bad05ded47614e9c6

Contents?: true

Size: 512 Bytes

Versions: 9

Compression:

Stored size: 512 Bytes

Contents

module Elasticity

  class BootstrapAction

    attr_accessor :name
    attr_accessor :option
    attr_accessor :value
    attr_accessor :script

    def initialize(script, option, value)
      @name = 'Elasticity Bootstrap Action'
      @option = option
      @value = value
      @script = script
    end

    def to_aws_bootstrap_action
      {
        :name => @name,
        :script_bootstrap_action => {
          :path => @script,
          :args => [@option, @value]
        }
      }
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
elasticity-2.7 lib/elasticity/bootstrap_action.rb
elasticity-2.6 lib/elasticity/bootstrap_action.rb
elasticity-2.5.6 lib/elasticity/bootstrap_action.rb
elasticity-2.5.5 lib/elasticity/bootstrap_action.rb
elasticity-2.5.3 lib/elasticity/bootstrap_action.rb
elasticity-2.5.2 lib/elasticity/bootstrap_action.rb
elasticity-2.5.1 lib/elasticity/bootstrap_action.rb
elasticity-2.5 lib/elasticity/bootstrap_action.rb
elasticity-2.4 lib/elasticity/bootstrap_action.rb