Sha256: 00053687a0b9069cb3d10d6ad1a6dae8b8cd6d007cf13b26cf62f9e86c375518
Contents?: true
Size: 583 Bytes
Versions: 5
Compression:
Stored size: 583 Bytes
Contents
class Snapshot < CloudstackCli::Base desc 'snapshot list', 'list snapshots' option :account option :project option :domain option :listall def list snapshots = client.list_snapshots(options) if snapshots.size < 1 say "No snapshots found." else table = [["Account", "Name", "Volume", "Created", "Type"]] snapshots.each do |snapshot| table << [ snapshot['account'], snapshot['name'], snapshot['volumename'], snapshot['created'], snapshot['snapshottype'] ] end print_table table end end end
Version data entries
5 entries across 5 versions & 1 rubygems