aly 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/aly/app.rb +16 -2
- data/lib/aly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f4b613a0c93e9ea9f7a8bf871be047d304cd0bca3b74cf0087dd1a108669cab
|
4
|
+
data.tar.gz: 7e903e4afbe0b1b634c83182efa9717de20a393a35685aaf18699ec565aee72e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d05f179882ed0090b7e2ab180c91c9ed01bbb101c3a9d169fc9b9ddf6ce1ade2892f8b01b27eaa3d342ddaadb60e797d06e45e91952e20861a498b46c3b72936
|
7
|
+
data.tar.gz: 2502e19639d64471221a0693854a5a9bc67e2821284d94ce707dd04d3bb1ea3d0d1a423736ce0538379935ad99b4b27d2bf4a32330d7a56ca6a52666c8d619f2
|
data/Gemfile.lock
CHANGED
data/lib/aly/app.rb
CHANGED
@@ -35,7 +35,20 @@ module Aly
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
if options['
|
38
|
+
if options['full']
|
39
|
+
selected = selected.map do |row|
|
40
|
+
{
|
41
|
+
Id: row['InstanceId'],
|
42
|
+
Name: row['InstanceName'],
|
43
|
+
PrivateIP: row['PrivateIP'],
|
44
|
+
PublicIP: row['PublicIP'],
|
45
|
+
CPU: row['Cpu'],
|
46
|
+
RAM: "#{row['Memory'] / 1024.0} GB",
|
47
|
+
WEB: "https://ecs.console.aliyun.com/#/server/#{row['InstanceId']}/monitor?regionId=#{row['RegionId']}"
|
48
|
+
}
|
49
|
+
end
|
50
|
+
puts selected.table&.to_s
|
51
|
+
elsif options['detail']
|
39
52
|
puts JSON.pretty_generate(selected)
|
40
53
|
else
|
41
54
|
selected = selected.map do |row|
|
@@ -104,7 +117,8 @@ module Aly
|
|
104
117
|
Name: lb['LoadBalancerName'],
|
105
118
|
Address: lb['Address'],
|
106
119
|
Eip: lb['Eip'],
|
107
|
-
Listeners: listeners.size
|
120
|
+
Listeners: listeners.size,
|
121
|
+
WEB: "https://slb.console.aliyun.com/slb/#{lb['RegionId']}/slbs/#{lb['LoadBalancerId']}/listeners"
|
108
122
|
}].table.to_s.gsub(/^/, ' '))
|
109
123
|
puts
|
110
124
|
|
data/lib/aly/version.rb
CHANGED