Class: VagrantPlugins::DevCommands::HelpPrinter::Chain

Inherits:
Object
  • Object
show all
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

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