Sha256: 6db0ece35f334cfce0a9e7ff886dfa38b4302e1cd47ca32e6fb29b51ab941585
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
require 'open-uri' module CephStorage module StorageObject # Remote URL Storage Object class URLStorageObject include CephStorage::StorageObject attr_accessor :url def initialize(url) self.name = url end def name url end def path url end def read_file open(url).read end def write_file(_contents) raise 'Unsupported file operation' end def destroy raise 'Unsupported file operation' 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/url_storage_object.rb |
ceph_storage-0.1.0 | lib/ceph_storage/storage_object/url_storage_object.rb |