Sha256: a6614f40905be167917af0266ea293636f4b3d41a01f6de10473b67e46464e96
Contents?: true
Size: 574 Bytes
Versions: 16
Compression:
Stored size: 574 Bytes
Contents
class Snapshot < CloudstackCli::Base desc '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
16 entries across 16 versions & 1 rubygems