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.
377 378 379 380 381 |
# File 'lib/inspec/profile.rb', line 377 def generate_lockfile res = Inspec::DependencySet.new(cwd, @cache, nil, @backend) res.vendor(.dependencies) Inspec::Lockfile.from_dependency_set(res) end |