Method: Inspec::Runner#load
- Defined in:
- lib/inspec/runner.rb
#load ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/inspec/runner.rb', line 76 def load all_controls = [] @target_profiles.each do |profile| @test_collector.add_profile(profile) write_lockfile(profile) if @create_lockfile profile.locked_dependencies profile.load_libraries @attributes |= profile.runner_context.attributes all_controls += profile.collect_tests end all_controls.each do |rule| register_rule(rule) unless rule.nil? end end |