Method: Puppet::Util::Lockfile#lock_data

Defined in:
lib/puppet/util/lockfile.rb

#lock_dataString

Retrieve the (optional) lock data that was specified at the time the file

was locked.

Returns:

  • (String)

    the data object.



53
54
55
# File 'lib/puppet/util/lockfile.rb', line 53

def lock_data
  return File.read(@file_path) if file_locked?
end