Sha256: 3b68dc43da9719acbc1c8b548861711b3c23180e8d11fb4b6cd2002f0a21550c
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
class SystemVm < CloudstackCli::Base desc 'list', 'list system vms' option :zone def list vms = client.list_system_vms(options) if vms.size < 1 say "No system vms found." else table = [["Zone", "State", "Type", "Name"]] vms.each do |vm| table << [ vm['zonename'], vm['state'], vm['systemvmtype'], vm['name'] ] end print_table table say "Total number of system vms: #{vms.size}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-cli-0.11.0 | lib/cloudstack-cli/commands/system_vm.rb |