laurilehmijoki / configure-s3-website

Ruby gem for configuring an AWS S3 bucket to function as a website
MIT License
40 stars 20 forks source link

Check for user input in cloudfront_client.rb #24

Open alexymik opened 5 years ago

alexymik commented 5 years ago

When deploying using s3_website as part of a BitBucket pipeline, the following error was observed:

Do you want to deliver your website via CloudFront, Amazon’s CDN service? [y/N]
undefined method `chomp' for nil:NilClass (NoMethodError)

Adding a nil check with a meaningful hint to add --headless.