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 +4 -4
- data/lib/opsicle/commands/list_instances.rb +25 -4
- data/lib/opsicle/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 295427c9908b48e688459e853bff54e60ec3b00e
|
4
|
+
data.tar.gz: 4e007d5493977059139c416a8d693616135a1b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
26
|
-
[
|
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)
|
data/lib/opsicle/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|