escobar 0.1.2 → 0.1.3

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: 343adec7bff5a835b00169a2f8afad75759f8cf1
4
- data.tar.gz: bdedccdd983055a9e1611817757d521f379b7fb6
3
+ metadata.gz: 8e5163971f30aa5f416a7e70cd5e312f918f3786
4
+ data.tar.gz: 3490ec4c900b0a9817c8e3328284cbaaa1420b73
5
5
  SHA512:
6
- metadata.gz: a0ec16918caa31cafd9bcb0fe5f32880b2de23c35ca7b00160c896913c18e657a1533870099d50e18bf4af53a6208cb12ad0594a2a3bc23c90edb732816b9d58
7
- data.tar.gz: 8cc1e6c8fadc0398ecf8eba8f104b52dae56ae7a07a1ef9615bf6464ee5b7fcb469ebb4e8be83d1cc36d6707b4c13024a28cb8d4434a984ca41daccd2cde7bae
6
+ metadata.gz: 27631e760f676bc770b0a274e2f86338cb558ae85d7d46399dd92a582b3045b9ca9649ac440a5f6cb3c8a9326c30d06fa776af697d44e3eadd9dbf0f66225328
7
+ data.tar.gz: ed3e44012d6050f3b2e81e8a134a015a111bc836ede6044ab56d36fe52a5b44eba95b3f32b4439308f872aea073b6c839cf83c3a672b5d29a3472eaf97694f8c
@@ -5,10 +5,12 @@ require "escobar"
5
5
 
6
6
  client = Escobar::Client.from_environment
7
7
 
8
- client.app_names.sort.each do |name|
9
- pipeline = client[name]
10
- puts "#{name}:"
11
- pipeline.couplings.each do |environment|
12
- puts " #{environment.name}: #{environment.app.name}"
8
+ client.app_names.sort.each do |application_name|
9
+ puts "#{application_name}:"
10
+
11
+ pipeline = client[application_name]
12
+ pipeline.environments.each do |name, apps|
13
+ names = apps.map { |app| app.app.name }
14
+ puts " #{name}: #{names.join(',')}"
13
15
  end
14
16
  end
@@ -18,4 +18,3 @@ module Escobar
18
18
  end
19
19
  end
20
20
  end
21
-
@@ -10,8 +10,9 @@ module Escobar
10
10
  end
11
11
 
12
12
  def environments
13
- @environments ||= couplings.each_with_object({}) do |sum, part|
14
- sum[part.name] = part
13
+ @environments ||= couplings.each_with_object({}) do |part, sum|
14
+ sum[part.name] ||= []
15
+ sum[part.name].push(part)
15
16
  sum
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Escobar
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe