hula 0.8.7 → 0.8.8
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 +9 -0
- data/lib/hula/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1aac14a5138249fab8b88a3d11e2bd8e18ef9a1
|
4
|
+
data.tar.gz: b586d47a4c36738cec1da53ed92f9f00d0ae8e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29190392dd73f82c05be36c8854623aa380f8b00f8a5213218489d813eed41c1b9064d916fa7f8557785d196f0bbd9610d4de1040e62557b7d5585413fa82d13
|
7
|
+
data.tar.gz: eaf5b1ced50bcc16c500928e9f2604f79e419211bcdd8fafbce58b563b7c45398abe9893bfc8da0f82424a81e2e6d789b542edf4b55bb596edaa2be7b7263e56
|
data/lib/hula/bosh_manifest.rb
CHANGED
@@ -48,6 +48,15 @@ module Hula
|
|
48
48
|
raise "Could not find deployment name in #{manifest_hash.inspect}"
|
49
49
|
end
|
50
50
|
|
51
|
+
def jobs_by_regexp(job_name_regexp)
|
52
|
+
jobs_property = manifest_hash.fetch('jobs')
|
53
|
+
jobs = jobs_property.select { |job| !job.fetch('name').match(job_name_regexp).nil? }
|
54
|
+
|
55
|
+
fail "Could not find job name '#{job_name_regexp}' in job list: #{jobs_property.inspect}" if jobs.empty?
|
56
|
+
|
57
|
+
jobs.map { |job| Job.new(job) }
|
58
|
+
end
|
59
|
+
|
51
60
|
def job(job_name)
|
52
61
|
jobs = manifest_hash.fetch('jobs')
|
53
62
|
job = jobs.detect { |j| j.fetch('name') == job_name }
|
data/lib/hula/version.rb
CHANGED