Method: Inspec::EnvPrinter#initialize
- Defined in:
- lib/inspec/env_printer.rb
#initialize(command_class, shell = nil) ⇒ EnvPrinter
Returns a new instance of EnvPrinter.
16 17 18 19 20 21 22 23 24 |
# File 'lib/inspec/env_printer.rb', line 16 def initialize(command_class, shell = nil) if !shell @detected = true @shell = Inspec::ShellDetector.new.shell else @shell = shell end @command_class = command_class end |