appfront 1.0.4 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appfront/api.rb +1 -1
- data/lib/appfront/command/flows.rb +20 -4
- 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: 80d7c187996c4421048193429a599c67415f620a
|
4
|
+
data.tar.gz: 86499356958cd2a7d4e9b79a36464e755385790f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba96aa2918c0983c75aac699335f2e90bfe3e3232f7f1f8453fd6853942546041c34dffbae6dc6669915db5d1d73d4699d8b9acb895582d2363f6bd5d142e405
|
7
|
+
data.tar.gz: 7b3dcc9d8b028fc52978705fc3eacfe3a9637cb5d0add40fa9729993b499fafcbebbfc18f1de3bf09e8b9eef4f6c86219c569c5f618c7c121e2d2d1e7e17c9bf
|
data/lib/appfront/api.rb
CHANGED
@@ -36,19 +36,29 @@ class Appfront::Command::Flows < Appfront::Command::Base
|
|
36
36
|
find_flow! opts
|
37
37
|
|
38
38
|
h = api.get "/flow/#{@flow}"
|
39
|
-
|
39
|
+
|
40
40
|
puts "=== Flow: #{h['name']}"
|
41
41
|
puts
|
42
42
|
puts "\t Flow uuid: #{h['uuid']}"
|
43
43
|
puts "\t Status: #{h['status']} "
|
44
|
-
puts "\t Running
|
44
|
+
puts "\t Running deploys: #{h['deploys']}"
|
45
45
|
puts
|
46
|
-
puts "=== Cluster: #{h['cluster']}"
|
46
|
+
puts "=== Cluster: #{h['cluster_name']} ---> #{h['cluster']}"
|
47
47
|
|
48
48
|
h['boxes'].each do |box|
|
49
49
|
puts "\t Box address:\t#{box['box']}"
|
50
50
|
end
|
51
51
|
|
52
|
+
if h['routes'] and h['routes'] != ''
|
53
|
+
puts "\n"
|
54
|
+
puts "=== Internal Addressing:"
|
55
|
+
|
56
|
+
|
57
|
+
h['routes'].each do |r|
|
58
|
+
puts "\t Route: #{r['route'].split('-')[0]} -> #{r['route'].split('-')[1]}"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
52
62
|
puts "\n"
|
53
63
|
|
54
64
|
end
|
@@ -58,7 +68,13 @@ class Appfront::Command::Flows < Appfront::Command::Base
|
|
58
68
|
unless flows.count == 0
|
59
69
|
puts '=== Flows List'
|
60
70
|
flows.each do |flow|
|
61
|
-
|
71
|
+
chars = 30 - flow['name'].chars.count
|
72
|
+
output = "#{flow['name']}"
|
73
|
+
for i in 0..chars
|
74
|
+
output = output + ' '
|
75
|
+
end
|
76
|
+
output = output + "---> status: #{flow['status']}"
|
77
|
+
puts output
|
62
78
|
end
|
63
79
|
else
|
64
80
|
puts '=== You have no flows.'
|