Class: VagrantPlugins::DevCommands::Runner::CommandAlias

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

Overview

Command alias runner

Constant Summary collapse

UTIL =
VagrantPlugins::DevCommands::Util

Instance Method Summary collapse

Constructor Details

#initialize(plugin, argv, env, registry) ⇒ CommandAlias

Returns a new instance of CommandAlias.



10
11
12
13
14
15
# File 'lib/vagrant/devcommands/runner/command_alias.rb', line 10

def initialize(plugin, argv, env, registry)
  @plugin   = plugin
  @argv     = argv
  @env      = env
  @registry = registry
end

Instance Method Details

#run(command_alias) ⇒ Object



17
18
19
20
21
22
# File 'lib/vagrant/devcommands/runner/command_alias.rb', line 17

def run(command_alias)
  runnable      = runnable_for(command_alias)
  runnable_argv = argv_for(command_alias)

  Command.new(@plugin, runnable_argv, @env, @registry).run(runnable)
end