Method: Fastlane::Helper::S3ClientHelper#find_bucket!

Defined in:
fastlane/lib/fastlane/helper/s3_client_helper.rb

#find_bucket!(bucket_name) ⇒ Object



47
48
49
50
51
52
# File 'fastlane/lib/fastlane/helper/s3_client_helper.rb', line 47

def find_bucket!(bucket_name)
  bucket = Aws::S3::Bucket.new(bucket_name, client: client)
  raise "Bucket '#{bucket_name}' not found" unless bucket.exists?

  return bucket
end