Method: Lono::S3::AwsSetup#check!

Defined in:
lib/lono/s3/aws_setup.rb

#check!Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/lono/s3/aws_setup.rb', line 5

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