Method: Inspec::Runner#initialize
- Defined in:
- lib/inspec/runner.rb
#initialize(conf = {}) ⇒ Runner
Returns a new instance of Runner.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/inspec/runner.rb', line 19 def initialize(conf = {}) @rules = {} @profile_id = conf[:id] @conf = conf.dup @conf[:logger] ||= Logger.new(nil) @test_collector = @conf.delete(:test_collector) || begin require 'inspec/runner_rspec' RunnerRspec.new(@conf) end configure_transport end |