Class: Vagrant::Smartos::Zones::Command::Dataset
- Inherits:
-
Object
- Object
- Vagrant::Smartos::Zones::Command::Dataset
- 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. = '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
-
#host ⇒ Object
writeonly
Sets the attribute host.
-
#ui ⇒ Object
writeonly
Sets the attribute ui.
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
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
14 15 16 |
# File 'lib/vagrant/smartos/zones/commands/dataset.rb', line 14 def ui=(value) @ui = value end |
Class Method Details
.synopsis ⇒ Object
31 32 33 |
# File 'lib/vagrant/smartos/zones/commands/dataset.rb', line 31 def self.synopsis 'Manage local SmartOS datasets' end |