Sha256: fb599eda5fc0eb0103dc900f59e4a9da18d03bc2619350afbd09565e87b5f1a7

Contents?: true

Size: 526 Bytes

Versions: 19

Compression:

Stored size: 526 Bytes

Contents

module AssetCloud
  class InvalidBucketError < StandardError
  end

  class InvalidBucket < Bucket
    Error = "No such namespace: %s".freeze

    def ls(namespace)
      raise InvalidBucketError, Error % namespace
    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

19 entries across 19 versions & 1 rubygems

Version Path
asset_cloud-2.7.1 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.7.0 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.6.1 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.6.0 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.5.3 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.5.2 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.5.1 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.5.0 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.4.0 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.3.1 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.3.0 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.9 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.8 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.7 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.6 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.5 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.4 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.2 lib/asset_cloud/buckets/invalid_bucket.rb
asset_cloud-2.2.1 lib/asset_cloud/buckets/invalid_bucket.rb