escobar 0.1.4 → 0.1.5

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: deb579b46df1fc1a57b83656957c548c0644b79b
4
- data.tar.gz: cca2acd271b856cf8362819300773b0213751d1d
3
+ metadata.gz: 42370af0a33d317fd7293e7eedf1a98a39de7d46
4
+ data.tar.gz: 64dc376c09e9e03128bfd0aa0d928d32649f987d
5
5
  SHA512:
6
- metadata.gz: d98fa606881aec71fd8c6cb1f755fb749a562dff5a6f33ab726f2096a1d8114773bbec02573a30d6e4bfb3e4728c937f3dd55435a9e995822e57600019843e52
7
- data.tar.gz: 67fe03bc3a4102011e3041cb8f8a3ea81bc1cdf299469e004b082b14c62592787a1ca49b48ca58d3e7e8eb230056b1f69c559809079af79567b6224e84708c60
6
+ metadata.gz: e5a44b422ffc26bd9459667574ae8378caebbb6963699c55a743793678ff198724896bb48aca1ceead5ef9d7bd605c4a30ba85c643c5139d7501da2178b27e0d
7
+ data.tar.gz: 3223018e939cd5b507d3bed6c86ceee0b40468f443b8f7215f9c751bed39a7da3903ea894a272aa21194308d5ce6acc5d0a19abcfea8c28f8572e4565bb507f7
data/exe/escobar CHANGED
@@ -9,7 +9,7 @@ client.app_names.sort.each do |application_name|
9
9
  puts "#{application_name}:"
10
10
 
11
11
  pipeline = client[application_name]
12
- pipeline.environments.each do |name, apps|
12
+ pipeline.each_environment do |name, apps|
13
13
  names = apps.map { |app| app.app.name }
14
14
  puts " #{name}: #{names.join(',')}"
15
15
  end
@@ -9,6 +9,13 @@ module Escobar
9
9
  @client = client
10
10
  end
11
11
 
12
+ def each_environment
13
+ sorted_environmens = environments.keys.sort
14
+ sorted_environmens.each do |environment|
15
+ yield(environment, environments[environment])
16
+ end
17
+ end
18
+
12
19
  def environments
13
20
  @environments ||= couplings.each_with_object({}) do |part, sum|
14
21
  sum[part.name] ||= []
@@ -1,3 +1,3 @@
1
1
  module Escobar
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escobar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe