class Steamcr::SentryFile
 
  - Steamcr::SentryFile
- Reference
- Object
Overview
Represents a Sentry file on disk
@todo this will overwrite any existing file, namespace to username?
Defined in:
steamcr/sentry_list.crInstance Method Summary
- 
        #read
        
          Read the digest from the sentry file. 
- 
        #write(digest)
        
          Writes the digest to the sentry file 
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]
        
        def write(digest)
        #
      
      
        Writes the digest to the sentry file
@example Write the SentryFile file = SentryFile.new file.write('sha1digest')
@param digest [String]