aerosol 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5404b6b9a731bb233826885c52ebf9f6c5cf108
4
- data.tar.gz: 27a5a1de8fd53f6eff006e359c0d150a89d46b30
3
+ metadata.gz: e7f88639e8e26f2fbd0e6d084dc7cf892fe64a64
4
+ data.tar.gz: 1900da4e6336f5ddcc1f5afc25c749983697bf22
5
5
  SHA512:
6
- metadata.gz: d0301f02c37e044904ac243048a66197c2c9b70787540c8957c1a179a4cdd5d0470129b9fd5635d1ea357a8e5cf7bb1de3bb02cfbd2428f94311c6f001b366b6
7
- data.tar.gz: a8bf540a1255e40d080806250fb07294b98ac568bf773d1c3610fbd5c14b9a9cb3bc05d3795294b62c88fb379e67136184f6d1af5376eb0309dde81798d9c9fe
6
+ metadata.gz: 110a201822e5fb9f48de030db928065630d9a11c183854c93e0862b628f1a567e36b8d1342bebbb5ce0b5ef722ef86c2aa02bc38f716063b1fd41282e410d0c8
7
+ data.tar.gz: a1397e305836e09a0cf8022c5fdc69cde103e39c3e1f2ebaaf9a62275a8a7ba7e6e4a1892fbdfde456d7a09c3ee50d9c808955645807202c3f0fecba61bc697d
@@ -68,7 +68,7 @@ class Aerosol::AutoScaling
68
68
  end
69
69
 
70
70
  def deleting?
71
- asgs = conn.describe_auto_scaling_groups(auto_scaling_group_names: auto_scaling_group_name).auto_scaling_groups
71
+ asgs = conn.describe_auto_scaling_groups(auto_scaling_group_names: [auto_scaling_group_name]).auto_scaling_groups
72
72
 
73
73
  return true if asgs.empty?
74
74
 
@@ -1,5 +1,5 @@
1
1
  # Copyright Swipely, Inc. All rights reserved.
2
2
 
3
3
  module Aerosol
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
@@ -116,7 +116,8 @@ describe Aerosol::AutoScaling do
116
116
  end
117
117
 
118
118
  describe '#destroy!' do
119
- subject { Aerosol::AutoScaling.new }
119
+ let(:launch_configuration) { Aerosol::LaunchConfiguration.new!(name: 'test-lc') }
120
+ subject { Aerosol::AutoScaling.new!(launch_configuration: launch_configuration.name) }
120
121
 
121
122
  context 'when there is no such auto-scaling group' do
122
123
  it 'raises an error' do
@@ -132,6 +133,7 @@ describe Aerosol::AutoScaling do
132
133
  context 'when the auto-scaling group exists' do
133
134
  it 'deletes the auto-scaling group' do
134
135
  Aerosol::AWS.auto_scaling.stub_responses(:delete_auto_scaling_group, {})
136
+ expect(subject.launch_configuration).to receive(:destroy)
135
137
  expect { subject.destroy! }.to_not raise_error
136
138
  end
137
139
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerosol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-29 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord