Sha256: ed1caf3b2d916379feed123685a65cc0bcaa872ac181bdb5fd305a6e22b69178
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
require 'aws-sdk-s3' require_relative 'utils' require_relative 'base' module Kishu class S3 def initialize s3 = Aws::S3::Client.new( :access_key_id => AWS_ACCESS_KEY_ID, :secret_access_key => AWS_SECRET_ACCESS_KEY ) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kishu-1.0.4 | lib/kishu/s3.rb |
kishu-1.0.3 | lib/kishu/s3.rb |
kishu-1.0.2 | lib/kishu/s3.rb |
kishu-1.0.1 | lib/kishu/s3.rb |