Sha256: 66b779942df40dd73f4778c391ca5db9caaad03cfb2e0ec9b3aad05d8bc4fa12
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
class StoragePool < CloudstackCli::Base desc 'list', 'list storage_pool' option :zone, desc: "zone name for the storage pool" option :name, desc: "name of the storage pool" option :keyword, desc: "list by keyword" def list storage_pools = client.list_storage_pools(options) if storage_pools.size < 1 say "No storage pools found." else table = [%w(Name Pod_Name State Zone)] storage_pools.each do |storage_pool| table << [ storage_pool['name'], storage_pool['podname'], storage_pool['state'], storage_pool['zonename'] ] end print_table table say "Total number of storage_pools: #{storage_pools.size}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-cli-0.7.0 | lib/cloudstack-cli/commands/storage_pool.rb |