Class: VagrantPlugins::DevCommands::HelpPrinter::CommandAlias

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

Overview

Prints help for a command alias

Constant Summary collapse

I18N_KEY =
'vagrant_devcommands.internal.help'
UTIL =
VagrantPlugins::DevCommands::Util
MESSAGES =
VagrantPlugins::DevCommands::Messages

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ CommandAlias

Returns a new instance of CommandAlias.



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

def initialize(env)
  @env = env
end

Instance Method Details

#output(command_alias) ⇒ Object



16
17
18
19
# File 'lib/vagrant/devcommands/help_printer/command_alias.rb', line 16

def output(command_alias)
  header(command_alias)
  body(command_alias.help)
end