Sha256: 0757f466b51e854b709bc2f8caff16ecb5ba760817808f3c8f4ab4c3d01590cd

Contents?: true

Size: 482 Bytes

Versions: 6

Compression:

Stored size: 482 Bytes

Contents

module Lono::S3
  class AwsSetup
    include Lono::AwsServices
    include Lono::Utils::Logging

    def check!
      s3.config.region
    rescue Aws::Errors::MissingRegionError => e
      logger.info "ERROR: #{e.class}: #{e.message}".color(:red)
      logger.info <<~EOL
        Unable to detect the AWS_REGION to make AWS API calls. This is might be because the AWS access
        has not been set up yet. Please either your ~/.aws files.
      EOL
      exit 1
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/s3/aws_setup.rb
lono-8.0.0.pre.rc5 lib/lono/s3/aws_setup.rb
lono-8.0.0.pre.rc4 lib/lono/s3/aws_setup.rb
lono-8.0.0.pre.rc3 lib/lono/s3/aws_setup.rb
lono-8.0.0.pre.rc2 lib/lono/s3/aws_setup.rb
lono-8.0.0.pre.rc1 lib/lono/s3/aws_setup.rb