elasticity 4.0.5 → 5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +1 -5
- data/lib/elasticity/job_flow.rb +0 -2
- data/lib/elasticity/version.rb +1 -1
- data/spec/lib/elasticity/job_flow_spec.rb +6 -35
- 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: e0f03b6f19c745e3dba221b6c758d09a684e9996
|
4
|
+
data.tar.gz: 688f198e1385cd13d47e6c974560e9162bdc795c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 209fb20aa9563f401be0f58be8e6ac2199890d0854cff8aa7da8b11cdfac6a18ae027bbdb5a7ddb3c2abe11ec4ffa97efebe196187910739223bca422acb178e
|
7
|
+
data.tar.gz: 24d77bf764a8aecd7616f75991538373eb539f5d7a3bb9591769a136fdc60b190963c61a5ee8632299ff4717003e87bbfa9308ad7948f2374d0d5bc30d3b3bba
|
data/HISTORY.md
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
## 5.0 - March 28,
|
1
|
+
## 5.0 - March 28, 2014
|
2
2
|
|
3
3
|
- Major version bump as there are language support implications.
|
4
4
|
- Now supporting only the latest version of the 2.x minors (e.g. 2.0.x, 2.1.x, etc.) versus specific minor-minor releases. This was an oversight on my part in how I both configured Travis and communicated support for the 2.x line.
|
5
5
|
- Removed support for Ruby 1.9.3 as it has been [unsupported since 2/23/2015](https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/).
|
6
6
|
- Removed "support" for JRuby. It was in poor form that I originally claimed to support JRuby as I do not have the time to dedicate to such an endeavor. Compatibility is merely coincidental and it would not be responsible for me to continue communicating ongoing support when that is not my intention. Apologies to those this may inconvenience.
|
7
7
|
|
8
|
-
## 4.0.5 - April 9, 2015
|
9
|
-
|
10
|
-
- Thanks to @alexanderdean, pull request [#82](https://github.com/rslifka/elasticity/pull/82) adds support for profile roles.
|
11
|
-
|
12
8
|
## 4.0.4 - November 20, 2014
|
13
9
|
|
14
10
|
- Thanks to @jshafton, pull request [#79](https://github.com/rslifka/elasticity/pull/79) adds support for job flow roles.
|
data/lib/elasticity/job_flow.rb
CHANGED
@@ -23,7 +23,6 @@ module Elasticity
|
|
23
23
|
attr_accessor :visible_to_all_users
|
24
24
|
attr_accessor :enable_debugging
|
25
25
|
attr_accessor :job_flow_role
|
26
|
-
attr_accessor :service_role
|
27
26
|
|
28
27
|
attr_reader :access_key
|
29
28
|
attr_reader :secret_key
|
@@ -188,7 +187,6 @@ module Elasticity
|
|
188
187
|
config[:steps] = steps
|
189
188
|
config[:log_uri] = @log_uri if @log_uri
|
190
189
|
config[:job_flow_role] = @job_flow_role if @job_flow_role
|
191
|
-
config[:service_role] = @service_role if @service_role
|
192
190
|
config[:bootstrap_actions] = @bootstrap_actions.map{|a| a.to_aws_bootstrap_action} unless @bootstrap_actions.empty?
|
193
191
|
config
|
194
192
|
end
|
data/lib/elasticity/version.rb
CHANGED
@@ -4,25 +4,22 @@ describe Elasticity::JobFlow do
|
|
4
4
|
Elasticity::JobFlow.new('access', 'secret')
|
5
5
|
end
|
6
6
|
|
7
|
+
its(:access_key) { should == 'access' }
|
8
|
+
its(:secret_key) { should == 'secret' }
|
7
9
|
its(:action_on_failure) { should == 'TERMINATE_JOB_FLOW' }
|
8
10
|
its(:ec2_key_name) { should == nil }
|
9
|
-
its(:
|
11
|
+
its(:ec2_subnet_id) { should == nil }
|
10
12
|
its(:instance_count) { should == 2 }
|
11
13
|
its(:log_uri) { should == nil }
|
12
14
|
its(:master_instance_type) { should == 'm1.small' }
|
15
|
+
its(:name) { should == 'Elasticity Job Flow' }
|
13
16
|
its(:slave_instance_type) { should == 'm1.small' }
|
14
17
|
its(:ami_version) { should == 'latest' }
|
15
18
|
its(:keep_job_flow_alive_when_no_steps) { should == false }
|
16
|
-
its(:ec2_subnet_id) { should == nil }
|
17
19
|
its(:placement) { should == 'us-east-1a' }
|
18
|
-
its(:region) { should == 'us-east-1' }
|
19
20
|
its(:visible_to_all_users) { should == false }
|
20
21
|
its(:enable_debugging) { should == false }
|
21
|
-
its(:
|
22
|
-
its(:service_role) { should == nil }
|
23
|
-
|
24
|
-
its(:access_key) { should == 'access' }
|
25
|
-
its(:secret_key) { should == 'secret' }
|
22
|
+
its(:region) { should == 'us-east-1' }
|
26
23
|
|
27
24
|
describe '.initialize' do
|
28
25
|
it 'should set the access and secret keys to nil by default' do
|
@@ -360,7 +357,7 @@ describe Elasticity::JobFlow do
|
|
360
357
|
end
|
361
358
|
end
|
362
359
|
|
363
|
-
context 'when a
|
360
|
+
context 'when a log URI is not specified' do
|
364
361
|
let(:jobflow_with_no_job_flow_role) do
|
365
362
|
Elasticity::JobFlow.new('_', '_').tap do |jf|
|
366
363
|
jf.job_flow_role = nil
|
@@ -373,32 +370,6 @@ describe Elasticity::JobFlow do
|
|
373
370
|
|
374
371
|
end
|
375
372
|
|
376
|
-
describe 'service role' do
|
377
|
-
|
378
|
-
context 'when a service role is specified' do
|
379
|
-
let(:jobflow_with_service_role) do
|
380
|
-
Elasticity::JobFlow.new('_', '_').tap do |jf|
|
381
|
-
jf.service_role = 'SERVICE_ROLE'
|
382
|
-
end
|
383
|
-
end
|
384
|
-
it 'should incorporate it into the jobflow config' do
|
385
|
-
jobflow_with_service_role.send(:jobflow_config).should be_a_hash_including({:service_role => 'SERVICE_ROLE'})
|
386
|
-
end
|
387
|
-
end
|
388
|
-
|
389
|
-
context 'when a service role is not specified' do
|
390
|
-
let(:jobflow_with_no_service_role) do
|
391
|
-
Elasticity::JobFlow.new('_', '_').tap do |jf|
|
392
|
-
jf.service_role = nil
|
393
|
-
end
|
394
|
-
end
|
395
|
-
it 'should not make space for it in the jobflow config' do
|
396
|
-
jobflow_with_no_service_role.send(:jobflow_config).should_not have_key(:service_role)
|
397
|
-
end
|
398
|
-
end
|
399
|
-
|
400
|
-
end
|
401
|
-
|
402
373
|
describe 'bootstrap actions' do
|
403
374
|
|
404
375
|
context 'when bootstrap actions are specified' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '5.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Slifka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|