Sha256: 708fff92b991ccbf1bfc3d9e2e691bf9b406404fdf8baeda90105790024f9a6a

Contents?: true

Size: 383 Bytes

Versions: 3

Compression:

Stored size: 383 Bytes

Contents

class S3Secure::CLI
  class Base
    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

3 entries across 3 versions & 1 rubygems

Version Path
s3-secure-0.7.0 lib/s3_secure/cli/base.rb
s3-secure-0.6.1 lib/s3_secure/cli/base.rb
s3-secure-0.6.0 lib/s3_secure/cli/base.rb