Class: VagrantPlugins::DevCommands::HelpPrinter::Chain
- Inherits:
-
Object
- Object
- VagrantPlugins::DevCommands::HelpPrinter::Chain
- Defined in:
- lib/vagrant/devcommands/help_printer/chain.rb
Overview
Prints help for a command chain
Constant Summary collapse
- I18N_KEY =
'vagrant_devcommands.internal.help'
- UTIL =
VagrantPlugins::DevCommands::Util
- MESSAGES =
VagrantPlugins::DevCommands::Messages
Instance Method Summary collapse
-
#initialize(env) ⇒ Chain
constructor
A new instance of Chain.
- #output(chain) ⇒ Object
Constructor Details
#initialize(env) ⇒ Chain
Returns a new instance of Chain.
12 13 14 |
# File 'lib/vagrant/devcommands/help_printer/chain.rb', line 12 def initialize(env) @env = env end |
Instance Method Details
#output(chain) ⇒ Object
16 17 18 19 20 |
# File 'lib/vagrant/devcommands/help_printer/chain.rb', line 16 def output(chain) header(chain) commands(chain) body(chain.help) end |