Sha256: c38c8b02b06cfc87729e5dd8851d98a6d34a152ad8bede8c11f16da754d964ef

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

require 'aws-sdk-s3'

require_relative 'utils'
require_relative 'base'

module Kishu
  class S3 

    def initialize
      s3 = Aws::S3::Client.new
      resp = s3.list_buckets
      resp.buckets.map(&:name)
    end

    def download_logs
      resp = s3.get_object(
        response_target: '/logs',
        bucket: S3_RESOLUTION_LOGS_BUCKET,
        key: 'object-key')
      resp.metadata
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kishu-1.0.0 lib/kishu/s3.rb
kishu-0.0.1 lib/kishu/s3.rb
kishu-0.0.0 lib/kishu/s3.rb