Method: Inspec::Requirement#profile
- Defined in:
- lib/inspec/dependencies/requirement.rb
#profile ⇒ Object
load the profile for the requirement
121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/inspec/dependencies/requirement.rb', line 121 def profile return @profile unless @profile.nil? opts = @opts.dup opts[:backend] = @backend opts[:runner_conf] = Inspec::Config.cached if !@dependencies.nil? && !@dependencies.empty? opts[:dependencies] = Inspec::DependencySet.from_array(@dependencies, @cwd, @cache, @backend) end opts[:profile_name] = @name opts[:parent_profile] = @parent_profile @profile = Inspec::Profile.for_fetcher(fetcher, opts) @profile end |