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.



16
17
18
19
20
21
22
23
24
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 16

def initialize(spec)
  @name = spec[:name]

  @argv    = spec[:argv] || []
  @command = spec[:command]
  @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.



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

def command
  @command
end

#descObject (readonly)

Returns the value of attribute desc.



12
13
14
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 12

def desc
  @desc
end

#helpObject (readonly)

Returns the value of attribute help.



13
14
15
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 13

def help
  @help
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 8

def name
  @name
end

#usageObject (readonly)

Returns the value of attribute usage.



14
15
16
# File 'lib/vagrant/devcommands/model/command_alias.rb', line 14

def usage
  @usage
end