elasticity 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/HISTORY.md +4 -0
- data/lib/elasticity/job_flow.rb +4 -1
- data/lib/elasticity/version.rb +1 -1
- data/spec/lib/elasticity/job_flow_spec.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzBhNjA2ZjIxMDRkYmM1ZDU3MTllZjNlYzcxZTViODE4YjNhMzU0ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmM4Zjc2YzhkYjEwOTkyZTkwZTMxYjU5ODdlYTA4OTY4YWRhZDVlZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWIxMzk4OWZjMTZkYTE3M2RjY2E3NmY1NTRjMGQ4OWUzNzBlOTQ2ZGFlYzVh
|
10
|
+
OGY3ZDljOGEwODE0OTZjN2JjYjlkZDdhYjEwMmRhNzUxNzE4YTg5YjdkZjg0
|
11
|
+
MDQ5YzVkZDQ3NzQzZjRlMWQ0MTJiYTM1MDkxN2Y3NzE0MzJhYjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTZmYmMxOGRiMzA1MGQwMjRhNTgxYzIxMTE0YjgxOWM4NjQ4NDhjMjlhOTU2
|
14
|
+
N2E5ZmNjMmM1OTIyNGYzOTI5M2RkNzYxMWI1ODk0MDk5MzEwM2FhNDIxODFm
|
15
|
+
N2Q2NjgzMzcwNmFkZDJkOWEyY2ZjMzc3MmM1M2M2NTM1MjdmYjk=
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 3.0.2 - March 26, 2014
|
2
|
+
|
3
|
+
- Second go at a fix for [Issue #60](https://github.com/rslifka/elasticity/issues/60), "Specifying a VPC subnet does not work" as placement and subnet cannot both be specified.
|
4
|
+
|
1
5
|
## 3.0.1 - March 26, 2014
|
2
6
|
|
3
7
|
- Fix for [Issue #60](https://github.com/rslifka/elasticity/issues/60), "Specifying a VPC subnet does not work".
|
data/lib/elasticity/job_flow.rb
CHANGED
@@ -185,7 +185,10 @@ module Elasticity
|
|
185
185
|
}
|
186
186
|
}
|
187
187
|
}
|
188
|
-
|
188
|
+
if @ec2_subnet_id
|
189
|
+
preamble[:instances].merge!(:ec2_subnet_id => @ec2_subnet_id)
|
190
|
+
preamble[:instances].delete(:placement)
|
191
|
+
end
|
189
192
|
preamble[:instances].merge!(:ec2_key_name => @ec2_key_name) if @ec2_key_name
|
190
193
|
preamble
|
191
194
|
end
|
data/lib/elasticity/version.rb
CHANGED
@@ -417,10 +417,15 @@ describe Elasticity::JobFlow do
|
|
417
417
|
end
|
418
418
|
|
419
419
|
context 'when a VPC subnet ID is specified' do
|
420
|
-
|
420
|
+
before do
|
421
421
|
subject.ec2_subnet_id = 'subnet-118b9d79'
|
422
|
+
end
|
423
|
+
it 'should include it in the preamble' do
|
422
424
|
subject.send(:jobflow_preamble)[:instances].should be_a_hash_including({:ec2_subnet_id => 'subnet-118b9d79'})
|
423
425
|
end
|
426
|
+
it 'should not include the placement since a subnet implies a placement' do
|
427
|
+
subject.send(:jobflow_preamble)[:instances].should_not include(:placement)
|
428
|
+
end
|
424
429
|
end
|
425
430
|
|
426
431
|
context 'when jobflow visibility is modified' do
|