Method: Inspec::Profile#lockfile

Defined in:
lib/inspec/profile.rb

#lockfileObject



417
418
419
420
421
422
423
# File 'lib/inspec/profile.rb', line 417

def lockfile
  @lockfile ||= if lockfile_exists?
                  Inspec::Lockfile.from_content(@source_reader.target.read('inspec.lock'))
                else
                  generate_lockfile
                end
end