class S3Secure::AbstractBase

Public Class Methods

new(options={}) click to toggle source
# File lib/s3_secure/abstract_base.rb, line 7
def initialize(options={})
  @options = options
  @bucket = options[:bucket] # not set on the list command but common enough to set here
end

Public Instance Methods

buckets() click to toggle source
# File lib/s3_secure/abstract_base.rb, line 12
def buckets
  resp = s3_client.list_buckets
  resp.buckets.map(&:name)
end