Sha256: 974d38aa5c283b7294fda820a4bfb6b3e2ca635b0d756b61688ac165d465c67f

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

module S3Secure
  class AbstractBase
    extend Memoist
    include S3Secure::AwsServices
    include Say

    def initialize(options={})
      @options = options
      @bucket = options[:bucket] # not set on the list command but common enough to set here
    end

    def buckets
      resp = s3_client.list_buckets
      resp.buckets.map(&:name)
    end
    memoize :buckets
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
s3-secure-0.5.1 lib/s3_secure/abstract_base.rb