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 +4 -4
- data/lib/hula/bosh_manifest.rb +14 -2
- data/lib/hula/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e330ca527e4f0e2de7d59506dc1fc1c7e39623
|
4
|
+
data.tar.gz: 3e610b06fea30b0ce457453fea1a7baf770f3fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de6049348dac62d0c842764f4e31753908eebcd1a973ef739bfea5dd76b5cd4162a583a8b42920f79e1e9b4cae0fccb0cea34f4db4a037cceb4165abbe21ea26
|
7
|
+
data.tar.gz: a3bef028442247909a98f20c327a8b256d681b7278025d6c07e5a3828272e0807e27e7151f162a159d4ba1bdea251e500d7ca223788c68a19ee591fbde91f7e5
|
data/lib/hula/bosh_manifest.rb
CHANGED
@@ -49,7 +49,13 @@ module Hula
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def jobs_by_regexp(job_name_regexp)
|
52
|
-
|
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
|
-
|
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
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.
|
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-
|
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.
|
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...
|