Sha256: d003f9df74c0528e651557405a07c86112a8b2148e054f5505dd14905de38661

Contents?: true

Size: 448 Bytes

Versions: 2

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

module Deadpull
  module Commands
    class S3Command < Base
      private

      def s3_client
        @s3_client ||= Values::S3Client.concretize(configuration)
      end

      def s3_locations
        @s3_locations ||= Values::S3Locations.concretize(configuration, environment)
      end

      def bucket
        @bucket ||= Aws::S3::Bucket.new(s3_locations.bucket, client: s3_client)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deadpull-0.1.1 lib/deadpull/commands/s3_command.rb
deadpull-0.1.0 lib/deadpull/commands/s3_command.rb