Class: Tartarus::RemoteStorage::Glacier::File

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/tartarus/remote_storage/glacier/file.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject



11
12
13
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 11

def body
  self
end

#checksumObject



15
16
17
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 15

def checksum
  Digest::SHA256.file(path)
end

#delete_from_local_storageObject



19
20
21
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 19

def delete_from_local_storage
  file_service.delete(path)
end

#descriptionObject



7
8
9
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 7

def description
  file_service.basename(self, ".*")
end