Method: Inspec::EnvPrinter#initialize
- Defined in:
- lib/inspec/env_printer.rb
#initialize(command_class, shell = nil) ⇒ EnvPrinter
Returns a new instance of EnvPrinter.
8 9 10 11 12 13 14 15 16 |
# File 'lib/inspec/env_printer.rb', line 8 def initialize(command_class, shell = nil) if !shell @detected = true @shell = Inspec::ShellDetector.new.shell else @shell = shell end @command_class = command_class end |