Class: VagrantPlugins::DevCommands::HelpPrinter::CommandAlias
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::HelpPrinter::CommandAlias
- 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
-
#initialize(env) ⇒ CommandAlias
constructor
A new instance of CommandAlias.
- #output(command_alias) ⇒ Object
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 |