smartos-manager 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartos-manager/cli.rb +5 -2
- data/lib/smartos-manager/version.rb +1 -1
- 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: 3d4d607dfb2d449462a1f839c570233b2055eebf
|
4
|
+
data.tar.gz: 92e92a570db5839078bca8312429df6dd1aa4d79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32cf2b180e3cab81658df3f99895644d085cc4b0abb2971efac9690a68aeeab494cb116add12b6abf094e7a4b1344148ef99f46c7762457711f966295062c5ed
|
7
|
+
data.tar.gz: ef71c9907c80ee5151bb4b839e20621da612094e36308a91305d28dfc5563de63c07b1d1ef8e0d5e6ba9798694ea1087d02ea08bba817e4a9fa701814bf1bb13
|
data/lib/smartos-manager/cli.rb
CHANGED
@@ -69,10 +69,13 @@ class AppCLI < Thor
|
|
69
69
|
str.split("_").map(&:capitalize).join(' ')
|
70
70
|
end
|
71
71
|
|
72
|
+
def format_generic(str)
|
73
|
+
str
|
74
|
+
end
|
72
75
|
|
73
76
|
def p_vm_list(size, name, type, uuid, state, admin_ip, *user_columns)
|
74
|
-
tmp = user_columns.map{|val| "[ #{val.to_s.ljust(15).cyan} ]" }.join('')
|
75
|
-
puts " [ #{size.rjust(6)}
|
77
|
+
tmp = user_columns.map{|val| "[ #{format_generic(val).to_s.ljust(15).cyan} ]" }.join('')
|
78
|
+
puts " [ #{size.rjust(6)} #{name.ljust(20)} - #{uuid.ljust(37)}][ #{format_generic(admin_ip).ljust(15).cyan} ]#{tmp}[ #{state} ]"
|
76
79
|
end
|
77
80
|
|
78
81
|
def printable_state(state)
|