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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cba07eaa2759bcc49654153477872775da246598
4
- data.tar.gz: 5e1feb1fb4c5ddb7d111293de81bd3fa0f0ef0c4
3
+ metadata.gz: a1aac14a5138249fab8b88a3d11e2bd8e18ef9a1
4
+ data.tar.gz: b586d47a4c36738cec1da53ed92f9f00d0ae8e56
5
5
  SHA512:
6
- metadata.gz: 9aa06670ce6d904f409baf04979e6bf8d9e3fd759c1c943dc75c0da8fbcd588810f28ff8b680f85fe14cf176aa37f400bb73c18d6745b4fbc78433752d933cd4
7
- data.tar.gz: d3390165abd763753aeecdc216f8f5fcfdb8cf724ff58068ac0b8d646f28d3a5bf5b24024deac923d5eeb7212035ea2582055fe8d37c094a170fdbbfa61d1c96
6
+ metadata.gz: 29190392dd73f82c05be36c8854623aa380f8b00f8a5213218489d813eed41c1b9064d916fa7f8557785d196f0bbd9610d4de1040e62557b7d5585413fa82d13
7
+ data.tar.gz: eaf5b1ced50bcc16c500928e9f2604f79e419211bcdd8fafbce58b563b7c45398abe9893bfc8da0f82424a81e2e6d789b542edf4b55bb596edaa2be7b7263e56
@@ -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
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Hula
12
- VERSION = '0.8.7'
12
+ VERSION = '0.8.8'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Pragnell