cloudstack-cli 1.0.0 → 1.0.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 +4 -4
- data/lib/cloudstack-cli/commands/virtual_machine.rb +4 -1
- data/lib/cloudstack-cli/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: c34b7f237ea0250c6de7a9a10f22a0612202eeb0
|
4
|
+
data.tar.gz: c9e88bd0af1e99fa4f10163a028ca93bf9fab549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddd33548d44e425bde77372aafd0798387879640174427b99801873d50ef05ca01676bb92ebaf29f071ff957011991b388724e3418cb95fcf8a825be24d0cc69
|
7
|
+
data.tar.gz: af576f5d1083f9586da2a72c906662a20b1be6f01b6c5e708750596de0681a0f2c6f8cf39f0a5d6d7674983359a70f4e71359df22818ede0f6d234a1debbd7df
|
@@ -57,7 +57,7 @@ class VirtualMachine < CloudstackCli::Base
|
|
57
57
|
def show(name)
|
58
58
|
resolve_project
|
59
59
|
options[:name] = name
|
60
|
-
unless virtual_machine = client.list_virtual_machines(options).first
|
60
|
+
unless virtual_machine = client.list_virtual_machines({list_all: true}.merge options).first
|
61
61
|
puts "No virtual machine found."
|
62
62
|
else
|
63
63
|
table = virtual_machine.map do |key, value|
|
@@ -205,7 +205,9 @@ class VirtualMachine < CloudstackCli::Base
|
|
205
205
|
when :json
|
206
206
|
say JSON.pretty_generate(virtual_machines: virtual_machines)
|
207
207
|
else
|
208
|
+
with_i_name = virtual_machines.first['instancename']
|
208
209
|
table = [["Name", "State", "Offering", "Zone", options[:project_id] ? "Project" : "Account", "IP's"]]
|
210
|
+
table.first.insert(1, "Instance-Name") if with_i_name
|
209
211
|
virtual_machines.each do |virtual_machine|
|
210
212
|
table << [
|
211
213
|
virtual_machine['name'],
|
@@ -215,6 +217,7 @@ class VirtualMachine < CloudstackCli::Base
|
|
215
217
|
options[:project_id] ? virtual_machine['project'] : virtual_machine['account'],
|
216
218
|
virtual_machine['nic'].map { |nic| nic['ipaddress']}.join(' ')
|
217
219
|
]
|
220
|
+
table.last.insert(1, virtual_machine['instancename']) if with_i_name
|
218
221
|
end
|
219
222
|
print_table table
|
220
223
|
say "Total number of virtual machines: #{virtual_machines.count}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nik Wolfgramm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|