hula 0.8.10 → 0.8.11

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: 17e330ca527e4f0e2de7d59506dc1fc1c7e39623
4
- data.tar.gz: 3e610b06fea30b0ce457453fea1a7baf770f3fd6
3
+ metadata.gz: 8092b82ab21c4436710267deeb975cf2a7fb00c5
4
+ data.tar.gz: c33969e19babbe234db43af88c2dae1f55d5d2c5
5
5
  SHA512:
6
- metadata.gz: de6049348dac62d0c842764f4e31753908eebcd1a973ef739bfea5dd76b5cd4162a583a8b42920f79e1e9b4cae0fccb0cea34f4db4a037cceb4165abbe21ea26
7
- data.tar.gz: a3bef028442247909a98f20c327a8b256d681b7278025d6c07e5a3828272e0807e27e7151f162a159d4ba1bdea251e500d7ca223788c68a19ee591fbde91f7e5
6
+ metadata.gz: 52be92c015b82db5815070997fc3132d960fcb8b79352357e211697865b2bffb42056befd9172cc2f547af9da1f6103a316126bcacf279e5608f3154fbf673fd
7
+ data.tar.gz: c1e943aba63c60b9df8243c63814b9ed884367864ea0cb585edf11b032c150a8a836946053959dad105a9e0bf6e882558ec5762fae415c677d424357e6983f50
@@ -181,7 +181,12 @@ module Hula
181
181
  attr_reader :target_url, :username, :password, :command_runner, :logger
182
182
 
183
183
  def job_properties(job_name)
184
- manifest.fetch('jobs').find { |job| job.fetch('name') == job_name }.tap do |properties|
184
+ if manifest.has_key?('instance_groups')
185
+ key = "instance_groups"
186
+ else
187
+ key = "jobs"
188
+ end
189
+ manifest.fetch(key).find { |job| job.fetch('name') == job_name }.tap do |properties|
185
190
  fail ArgumentError.new('Job not found in manifest') unless properties
186
191
  end
187
192
  end
data/lib/hula/version.rb CHANGED
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Hula
12
- VERSION = '0.8.10'
12
+ VERSION = '0.8.11'
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.10
4
+ version: 0.8.11
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-06-24 00:00:00.000000000 Z
11
+ date: 2017-01-23 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.4
231
+ rubygems_version: 2.5.1
232
232
  signing_key:
233
233
  specification_version: 4
234
234
  summary: A tasty wrapper around cf, and more...