Method: Inspec::InspecCLI#exec
- Defined in:
- lib/inspec/cli.rb
#exec(*targets) ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/inspec/cli.rb', line 154 def exec(*targets) diagnose o = opts(:exec).dup configure_logger(o) # check for deprecated --cache # TODO: REMOVE for inspec 2.0 if o.key?('cache') o[:vendor_cache] = o[:cache] o[:logger].warn '[DEPRECATED] The use of `--cache` is being deprecated in InSpec 2.0. Please use `--vendor-cache` instead.' end # run tests run_tests(targets, o) rescue StandardError => e pretty_handle_exception(e) end |