class Smartdc::Cli::MachineSnapshot

Public Instance Methods

add(name) click to toggle source
# File lib/smartdc/cli/machine/snapshot.rb, line 21
def add(name)
  id = use_machine(options['id'])
  output Smartdc.create_machine_snapshot(id, {name: name}), options.merge(table: :vertical)
end
destroy(name) click to toggle source
# File lib/smartdc/cli/machine/snapshot.rb, line 27
def destroy(name)
  id = use_machine(options['id'])
  output Smartdc.destroy_machine_snapshot(id, name), options.merge(message: "Destroy [#{name}] of machine snapshot.")
end
list() click to toggle source
# File lib/smartdc/cli/machine/snapshot.rb, line 9
def list
  id = use_machine(options['id'])
  output Smartdc.machine_snapshots(id), options.merge(table: :horizontal)
end
show(name) click to toggle source
# File lib/smartdc/cli/machine/snapshot.rb, line 15
def show(name)
  id = use_machine(options['id'])
  output Smartdc.machine_snapshot(id, name), options.merge(table: :vertical)
end
start(name) click to toggle source
# File lib/smartdc/cli/machine/snapshot.rb, line 33
def start(name)
  id = use_machine(options['id'])
  output Smartdc.start_machine_snapshot(id, name), options.merge(message: "Start [#{name}] of machine snapshot.")
end