Sha256: 6c489490479cf47afc30e951ab050e3ed296d96e74f24eb4741414ef9534911f

Contents?: true

Size: 371 Bytes

Versions: 7

Compression:

Stored size: 371 Bytes

Contents

module S3Secure
  class AbstractBase
    include S3Secure::AwsServices
    extend Memoist

    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

7 entries across 7 versions & 1 rubygems

Version Path
s3-secure-0.5.0 lib/s3_secure/abstract_base.rb
s3-secure-0.4.2 lib/s3_secure/abstract_base.rb
s3-secure-0.4.1 lib/s3_secure/abstract_base.rb
s3-secure-0.4.0 lib/s3_secure/abstract_base.rb
s3-secure-0.3.0 lib/s3_secure/abstract_base.rb
s3-secure-0.2.0 lib/s3_secure/abstract_base.rb
s3-secure-0.1.0 lib/s3_secure/abstract_base.rb