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 +4 -4
- data/lib/aerosol/auto_scaling.rb +1 -1
- data/lib/aerosol/version.rb +1 -1
- data/spec/aerosol/auto_scaling_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7f88639e8e26f2fbd0e6d084dc7cf892fe64a64
|
|
4
|
+
data.tar.gz: 1900da4e6336f5ddcc1f5afc25c749983697bf22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 110a201822e5fb9f48de030db928065630d9a11c183854c93e0862b628f1a567e36b8d1342bebbb5ce0b5ef722ef86c2aa02bc38f716063b1fd41282e410d0c8
|
|
7
|
+
data.tar.gz: a1397e305836e09a0cf8022c5fdc69cde103e39c3e1f2ebaaf9a62275a8a7ba7e6e4a1892fbdfde456d7a09c3ee50d9c808955645807202c3f0fecba61bc697d
|
data/lib/aerosol/auto_scaling.rb
CHANGED
|
@@ -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
|
|
data/lib/aerosol/version.rb
CHANGED
|
@@ -116,7 +116,8 @@ describe Aerosol::AutoScaling do
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
describe '#destroy!' do
|
|
119
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|