Class: Vagrant::Smartos::Zones::Command::Dataset

Inherits:
Object
  • Object
show all
Includes:
MultiCommand
Defined in:
lib/vagrant/smartos/zones/commands/dataset.rb

Constant Summary collapse

COMMANDS =
%w(list create delete install).freeze
OPTION_PARSER =
OptionParser.new do |o|
  o.banner = 'Usage: vagrant dataset [subcommand] [options]'
  o.separator ''
  o.separator 'Commands:'
  o.separator '  create [zone] [name]         create a local dataset [name] from running zone [zone]'
  o.separator '  delete [name]                delete a local dataset [name]'
  o.separator '  list                         show all locally installed datasets'
  o.separator '  install [url]                download a dataset to the local machine'
  o.separator ''
  o.separator 'Options:'
  o.separator ''
end

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from MultiCommand

#execute, #fail_options!, #option_parser, #process_subcommand, #subcommands

Instance Attribute Details

#host=(value) ⇒ Object

Sets the attribute host

Parameters:

  • value

    the value to set the attribute host to.



14
15
16
# File 'lib/vagrant/smartos/zones/commands/dataset.rb', line 14

def host=(value)
  @host = value
end

#ui=(value) ⇒ Object

Sets the attribute ui

Parameters:

  • value

    the value to set the attribute ui to.



14
15
16
# File 'lib/vagrant/smartos/zones/commands/dataset.rb', line 14

def ui=(value)
  @ui = value
end

Class Method Details

.synopsisObject



31
32
33
# File 'lib/vagrant/smartos/zones/commands/dataset.rb', line 31

def self.synopsis
  'Manage local SmartOS datasets'
end