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'.freeze
- 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.
10 11 12 |
# File 'lib/vagrant/devcommands/help_printer/command_alias.rb', line 10 def initialize(env) @env = env end |
Instance Method Details
#output(command_alias) ⇒ Object
14 15 16 17 |
# File 'lib/vagrant/devcommands/help_printer/command_alias.rb', line 14 def output(command_alias) header(command_alias) body(command_alias.help) end |