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 +4 -4
- data/exe/escobar +7 -5
- data/lib/escobar/heroku/app.rb +0 -1
- data/lib/escobar/heroku/pipeline.rb +3 -2
- data/lib/escobar/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: 8e5163971f30aa5f416a7e70cd5e312f918f3786
|
4
|
+
data.tar.gz: 3490ec4c900b0a9817c8e3328284cbaaa1420b73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27631e760f676bc770b0a274e2f86338cb558ae85d7d46399dd92a582b3045b9ca9649ac440a5f6cb3c8a9326c30d06fa776af697d44e3eadd9dbf0f66225328
|
7
|
+
data.tar.gz: ed3e44012d6050f3b2e81e8a134a015a111bc836ede6044ab56d36fe52a5b44eba95b3f32b4439308f872aea073b6c839cf83c3a672b5d29a3472eaf97694f8c
|
data/exe/escobar
CHANGED
@@ -5,10 +5,12 @@ require "escobar"
|
|
5
5
|
|
6
6
|
client = Escobar::Client.from_environment
|
7
7
|
|
8
|
-
client.app_names.sort.each do |
|
9
|
-
|
10
|
-
|
11
|
-
pipeline
|
12
|
-
|
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
|
data/lib/escobar/heroku/app.rb
CHANGED
@@ -10,8 +10,9 @@ module Escobar
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def environments
|
13
|
-
@environments ||= couplings.each_with_object({}) do |
|
14
|
-
sum[part.name]
|
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
|
data/lib/escobar/version.rb
CHANGED