Sha256: 248f959505e5028cddfe938577b6703663bfd8236b6cc5f2dd665ff2a722d216

Contents?: true

Size: 600 Bytes

Versions: 9

Compression:

Stored size: 600 Bytes

Contents

module AssetCloud
  class InvalidBucketError < StandardError
  end
  
  class InvalidBucket < Bucket  
    Error = "No such namespace: %s".freeze
    
    def ls(namespace)     
      raise InvalidBucketError, Error % key
    end                               

    def read(key)  
      raise InvalidBucketError, Error % key
    end          

    def write(key, data)       
      raise InvalidBucketError, Error % key
    end   

    def delete(key)
      raise InvalidBucketError, Error % key
    end           
    
    def stat(key)
      raise InvalidBucketError, Error % key
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
Shopify-asset_cloud-0.5.1 lib/asset_cloud/invalid_bucket.rb
Shopify-asset_cloud-0.5.2 lib/asset_cloud/buckets/invalid_bucket.rb
Shopify-asset_cloud-0.5.3 lib/asset_cloud/buckets/invalid_bucket.rb
Shopify-asset_cloud-0.5.4 lib/asset_cloud/buckets/invalid_bucket.rb
jamesmacaulay-asset_cloud-0.5.0 lib/asset_cloud/invalid_bucket.rb
jamesmacaulay-asset_cloud-0.5.1 lib/asset_cloud/invalid_bucket.rb
jamesmacaulay-asset_cloud-0.5.2 lib/asset_cloud/buckets/invalid_bucket.rb
jamesmacaulay-asset_cloud-0.5.3 lib/asset_cloud/buckets/invalid_bucket.rb
jamesmacaulay-asset_cloud-0.5.4 lib/asset_cloud/buckets/invalid_bucket.rb