Class: ConfigureS3Website::EndpointHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/configure-s3-website/endpoint_helper.rb

Class Method Summary collapse

Class Method Details

.s3_website_hostname(region) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/configure-s3-website/endpoint_helper.rb', line 3

def self.s3_website_hostname(region)
  if old_regions.include?(region)
    "s3-website-#{region}.amazonaws.com"
  else
    "s3-website.#{region}.amazonaws.com"
  end
end