class Smartdc::Cli::MachineTag
Public Instance Methods
add(key, value)
click to toggle source
# File lib/smartdc/cli/machine/tag.rb, line 22 def add(key, value) id = use_machine(options['id']) output Smartdc.create_machine_tag(id, {key => value}), options.merge(table: :vertical) end
destroy(key)
click to toggle source
# File lib/smartdc/cli/machine/tag.rb, line 28 def destroy(key) id = use_machine(options['id']) output Smartdc.destroy_machine_tag(id, key), options.merge(message: "Destroy [#{key}] of machine tag.") end
list()
click to toggle source
# File lib/smartdc/cli/machine/tag.rb, line 9 def list id = use_machine(options['id']) output Smartdc.machine_tags(id), options.merge(table: :vertical) end
show(key)
click to toggle source
# File lib/smartdc/cli/machine/tag.rb, line 15 def show(key) id = use_machine(options['id']) response = Smartdc.machine_tag(id, key) output response, options.merge(message: response.content) end