class Tartarus::RemoteStorage::Glacier::File

Public Instance Methods

body() click to toggle source
# File lib/tartarus/remote_storage/glacier/file.rb, line 11
def body
  self
end
checksum() click to toggle source
# File lib/tartarus/remote_storage/glacier/file.rb, line 15
def checksum
  Digest::SHA256.file(path)
end
delete_from_local_storage() click to toggle source
# File lib/tartarus/remote_storage/glacier/file.rb, line 19
def delete_from_local_storage
  file_service.delete(path)
end
description() click to toggle source
# File lib/tartarus/remote_storage/glacier/file.rb, line 7
def description
  file_service.basename(self, ".*")
end

Private Instance Methods

file_service() click to toggle source
# File lib/tartarus/remote_storage/glacier/file.rb, line 25
def file_service
  ::File
end