Class: VagrantPlugins::DevCommands::Model::CommandAlias

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/devcommands/model/command_alias.rb

Overview

Definition of a command alias

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argvObject (readonly)

Returns the value of attribute argv.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def argv
  @argv
end

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def command
  @command
end

#descObject (readonly)

Returns the value of attribute desc.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def desc
  @desc
end

#helpObject (readonly)

Returns the value of attribute help.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def help
  @help
end

#machineObject (readonly)

Returns the value of attribute machine.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def machine
  @machine
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def name
  @name
end

#usageObject (readonly)

Returns the value of attribute usage.



10
11
12
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 10

def usage
  @usage
end