opsicle 2.11.1 → 2.11.3

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: 8a75d1113150783a01d54f283183d80ebd130752
4
- data.tar.gz: 235fca70e248b9d6f5a8a5e7981fdbac0f3253ce
3
+ metadata.gz: 295427c9908b48e688459e853bff54e60ec3b00e
4
+ data.tar.gz: 4e007d5493977059139c416a8d693616135a1b70
5
5
  SHA512:
6
- metadata.gz: 009279aec4c5366d91e71cde98ee00cd90d3a9e643731a940cd555197deb9779df3acd1ec367ba0c03255eed9fecfd8d0fcef811cc463cc2a9b2505f5f4ac921
7
- data.tar.gz: 769f9652489b563bdd867676e979c2855f4e9694d65c84c94ab4c2d59a5cc625bb9d3a60a5b9fadfedc2871568d01f513de013a3259a16442f3980b08c884773
6
+ metadata.gz: ff75ee6a9affba502c440a5346542f010e903c960b6a25412f9870e20f493e18724bee7170dca94e4dd698d72eceff2fe4e96260dc94111220807aeafebcb31f
7
+ data.tar.gz: 8eeb17bb28133dd5085369a3dfbbdf9cbac5a4cc91da4ac2b626c9e27446baeed46d51edd1833cbe8f315704c4082ef793d491be92c8cccc17958c2a9619ba28
@@ -18,13 +18,34 @@ module Opsicle
18
18
  end
19
19
 
20
20
  def print(instances)
21
- puts Terminal::Table.new headings: ['Hostname', 'Layers', 'Status', 'Public IP', 'Private IP'], rows: instance_data(instances)
21
+ puts Terminal::Table.new(
22
+ headings: [
23
+ 'Hostname',
24
+ 'Size',
25
+ 'Layers',
26
+ 'Status',
27
+ 'Public IP',
28
+ 'Private IP',
29
+ 'Zone'
30
+ ],
31
+ rows: instance_data(instances)
32
+ )
22
33
  end
23
34
 
24
35
  def instance_data(instances)
25
- instances.sort { |a,b| a[:hostname] <=> b[:hostname] }.map { |instance|
26
- [instance[:hostname], layer_names(instance), instance[:status], Opsicle::Instances::pretty_ip(instance), Opsicle::Instances::private_ip(instance)]
27
- }
36
+ instances
37
+ .sort { |a,b| a[:hostname] <=> b[:hostname] }
38
+ .map do |instance|
39
+ [
40
+ instance[:hostname],
41
+ instance[:instance_type],
42
+ layer_names(instance),
43
+ instance[:status],
44
+ Opsicle::Instances::pretty_ip(instance),
45
+ Opsicle::Instances::private_ip(instance),
46
+ instance[:availability_zone]
47
+ ]
48
+ end
28
49
  end
29
50
 
30
51
  def layer_names(instance)
@@ -1,3 +1,3 @@
1
1
  module Opsicle
2
- VERSION = "2.11.1"
2
+ VERSION = "2.11.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.1
4
+ version: 2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Fleener
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-09 00:00:00.000000000 Z
12
+ date: 2018-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk