class Steamcr::SentryFile

Overview

Represents a Sentry file on disk

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

Defined in:

steamcr/sentry_list.cr

Instance Method Summary

Instance Method Detail

def 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]


[View source]
def write(digest) #

Writes the digest to the sentry file

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

@param digest [String]


[View source]