class

Steamcr::SentryFile

Inherits Reference < Object

Represents a Sentry file on disk

@todo this will overwrite any existing file, namespace to username?

Instance methods

read

Read the digest from the sentry file. Returns nil if the Sentry file does not exist.

@example Read the SentryFile file = SentryFile.new file.read # => 'somedigest'

@return [String,nil]

Source
write(digest)

Writes the digest to the sentry file

@example Write the SentryFile file = SentryFile.new file.write('sha1digest')

@param digest [String]

Source