Class: VagrantPlugins::DevCommands::Runner::CommandAlias
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::Runner::CommandAlias
- Defined in:
- lib/vagrant/devcommands/runner/command_alias.rb
Overview
Command alias runner
Constant Summary collapse
- UTIL =
VagrantPlugins::DevCommands::Util
Instance Method Summary collapse
-
#initialize(plugin, argv, env, registry) ⇒ CommandAlias
constructor
A new instance of CommandAlias.
- #run(command_alias) ⇒ Object
Constructor Details
#initialize(plugin, argv, env, registry) ⇒ CommandAlias
Returns a new instance of CommandAlias.
8 9 10 11 12 13 |
# File 'lib/vagrant/devcommands/runner/command_alias.rb', line 8 def initialize(plugin, argv, env, registry) @plugin = plugin @argv = argv @env = env @registry = registry end |
Instance Method Details
#run(command_alias) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/vagrant/devcommands/runner/command_alias.rb', line 15 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 |