Sha256: 8455625897fd1226a4060619c88ef2f339f71343bdcaed1b2df794cde048c799
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
module CephStorage module StorageObject # File Storage Object class FileStorageObject < ::File include CephStorage::StorageObject def name path end def read_file buf = read rewind buf end def write_file(contents) write(contents) flush rewind end def destroy File.unlink(path) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceph_storage-0.1.1 | lib/ceph_storage/storage_object/file_storage_object.rb |
ceph_storage-0.1.0 | lib/ceph_storage/storage_object/file_storage_object.rb |