hula 0.8.9 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39a9cf052b70390a4d6f7a43a564a2f1cb705b37
4
- data.tar.gz: 23223b208abd02f29e6d2f0d974f748b6c4a6025
3
+ metadata.gz: 17e330ca527e4f0e2de7d59506dc1fc1c7e39623
4
+ data.tar.gz: 3e610b06fea30b0ce457453fea1a7baf770f3fd6
5
5
  SHA512:
6
- metadata.gz: 76c6ec126c77ae2a4518db4d0ec7faec4249886338b9be3e169e95536c416c79b2301dbc2a217816417521455fbdf530bdfcb0e55b0d4dc2bd9f0ca37ed94ce1
7
- data.tar.gz: 15d21fd82ee7b2fcd0b6e9765b9a912ba46b1e8be122c38bc486409fdf00767aa63d5ede97c1680bcbdabb559251805d2c24c2b7da5acd1ecc830553976f3f7b
6
+ metadata.gz: de6049348dac62d0c842764f4e31753908eebcd1a973ef739bfea5dd76b5cd4162a583a8b42920f79e1e9b4cae0fccb0cea34f4db4a037cceb4165abbe21ea26
7
+ data.tar.gz: a3bef028442247909a98f20c327a8b256d681b7278025d6c07e5a3828272e0807e27e7151f162a159d4ba1bdea251e500d7ca223788c68a19ee591fbde91f7e5
@@ -49,7 +49,13 @@ module Hula
49
49
  end
50
50
 
51
51
  def jobs_by_regexp(job_name_regexp)
52
- jobs_property = manifest_hash.fetch('jobs')
52
+ if manifest_hash.has_key?('instance_groups')
53
+ key = "instance_groups"
54
+ else
55
+ key = "jobs"
56
+ end
57
+
58
+ jobs_property = manifest_hash.fetch(key)
53
59
  jobs = jobs_property.select { |job| !job.fetch('name').match(job_name_regexp).nil? }
54
60
 
55
61
  fail "Could not find job name '#{job_name_regexp}' in job list: #{jobs_property.inspect}" if jobs.empty?
@@ -58,7 +64,13 @@ module Hula
58
64
  end
59
65
 
60
66
  def job(job_name)
61
- jobs = manifest_hash.fetch('jobs')
67
+ if manifest_hash.has_key?('instance_groups')
68
+ key = "instance_groups"
69
+ else
70
+ key = "jobs"
71
+ end
72
+
73
+ jobs = manifest_hash.fetch(key)
62
74
  job = jobs.detect { |j| j.fetch('name') == job_name }
63
75
 
64
76
  fail "Could not find job name '#{job_name}' in job list: #{jobs.inspect}" if job.nil?
data/lib/hula/version.rb CHANGED
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Hula
12
- VERSION = '0.8.9'
12
+ VERSION = '0.8.10'
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Pragnell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  requirements: []
230
230
  rubyforge_project:
231
- rubygems_version: 2.6.3
231
+ rubygems_version: 2.6.4
232
232
  signing_key:
233
233
  specification_version: 4
234
234
  summary: A tasty wrapper around cf, and more...