Class: VagrantPlugins::DevCommands::Model::CommandAlias
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::Model::CommandAlias
- Defined in:
- lib/vagrant/devcommands/model/command_alias.rb
Overview
Definition of a command alias
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#help ⇒ Object
readonly
Returns the value of attribute help.
-
#machine ⇒ Object
readonly
Returns the value of attribute machine.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(spec) ⇒ CommandAlias
constructor
A new instance of CommandAlias.
Constructor Details
#initialize(spec) ⇒ CommandAlias
Returns a new instance of CommandAlias.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 12 def initialize(spec) @name = spec[:name] @argv = spec[:argv] || [] @command = spec[:command] @machine = spec[:machine] @desc = spec[:desc] @help = spec[:help] @usage = spec[:usage] end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def argv @argv end |
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def command @command end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def desc @desc end |
#help ⇒ Object (readonly)
Returns the value of attribute help.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def help @help end |
#machine ⇒ Object (readonly)
Returns the value of attribute machine.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def machine @machine end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def name @name end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
10 11 12 |
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10 def usage @usage end |