appfront 1.0.4 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78418645c101734b76a18cbe4747f01eb4850b78
4
- data.tar.gz: 47d6addf402d6227b0a159d16ef1f9371eeabac4
3
+ metadata.gz: 80d7c187996c4421048193429a599c67415f620a
4
+ data.tar.gz: 86499356958cd2a7d4e9b79a36464e755385790f
5
5
  SHA512:
6
- metadata.gz: b84e078eb824ce63fe949ff0d458fab3fcd6f2c4b0aaedafb0413d46a947a79d08aa7098e202833ec213fb0b5ccd359a9ecfb62f607b930fc3ab219e78c200cc
7
- data.tar.gz: 62417cf27a5964addc9439904245d2f3b631544cfb720d60de646203409e4aafb579457eb2830610e753fa3bc4bef2364b18217c4f6109a9fb2528e1dbc2dd0c
6
+ metadata.gz: ba96aa2918c0983c75aac699335f2e90bfe3e3232f7f1f8453fd6853942546041c34dffbae6dc6669915db5d1d73d4699d8b9acb895582d2363f6bd5d142e405
7
+ data.tar.gz: 7b3dcc9d8b028fc52978705fc3eacfe3a9637cb5d0add40fa9729993b499fafcbebbfc18f1de3bf09e8b9eef4f6c86219c569c5f618c7c121e2d2d1e7e17c9bf
@@ -79,7 +79,7 @@
79
79
  if e.respond_to? :response
80
80
  puts e.response
81
81
  else
82
- puts 'Something went wrong, we have been notified.'
82
+ puts "Something went wrong, we have been notified."
83
83
  end
84
84
 
85
85
  exit 1
@@ -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 instances: #{h['instances']}"
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
- puts "#{flow['name']}:#{flow['tier']} ---> status: #{flow['status']}"
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.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appfront