Sha256: e2dd9feed0fdcd73f0fe4a1c4f9e77ffc77d90f1262309c56858d002ac367ed4

Contents?: true

Size: 639 Bytes

Versions: 9

Compression:

Stored size: 639 Bytes

Contents

describe Elasticity::BootstrapAction do

  subject do
    Elasticity::BootstrapAction.new('script', 'option', 'value')
  end

  its(:name) { should == 'Elasticity Bootstrap Action' }
  its(:option) { should == 'option' }
  its(:value) { should == 'value' }
  its(:script) { should == 'script' }

  describe '#to_aws_bootstrap_action' do
    it 'should create a bootstrap action' do
      subject.to_aws_bootstrap_action.should ==
        {
          :name => 'Elasticity Bootstrap Action',
          :script_bootstrap_action => {
            :path => 'script',
            :args => %w(option value)
          }
        }
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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