79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# File 'lib/inspec/runner.rb', line 79
def load
all_controls = []
@target_profiles.each do |profile|
@test_collector.add_profile(profile)
write_lockfile(profile) if @create_lockfile
profile.locked_dependencies
profile_context = profile.load_libraries
profile_context.dependencies.list.values.each do |requirement|
@test_collector.add_profile(requirement.profile)
end
@attributes |= profile.runner_context.attributes
all_controls += profile.collect_tests
end
all_controls.each do |rule|
register_rule(rule) unless rule.nil?
end
end
|