Method: Inspec::Profile#generate_lockfile
- Defined in:
- lib/inspec/profile.rb
#generate_lockfile ⇒ Inspec::Lockfile
Generate an in-memory lockfile. This won’t render the lock file to disk, it must be explicitly written to disk by the caller.
399 400 401 402 403 |
# File 'lib/inspec/profile.rb', line 399 def generate_lockfile res = Inspec::DependencySet.new(cwd, @cache, nil, @backend) res.vendor(.dependencies) Inspec::Lockfile.from_dependency_set(res) end |