Method: Inspec::InspecCLI#shell_func
- Defined in:
- lib/inspec/cli.rb
#shell_func ⇒ Object
135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/inspec/cli.rb', line 135 def shell_func diagnose o = opts.dup o[:logger] = Logger.new(STDOUT) o[:logger].level = get_log_level(o.log_level) runner = Inspec::Runner.new(o) Inspec::Shell.new(runner).start rescue RuntimeError => e puts e. end |