Sha256: 7101961f123c61baa58fafebee24b05c98e32b45cc1e52a7a237a4624e9403ec

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

module FaaStRuby
  DEFAULT_REGION = 'tor1'
  REGIONS = [
    'tor1'
  ]

  def self.region
    ENV['FAASTRUBY_REGION'] ||= DEFAULT_REGION
    raise "No such region: #{ENV['FAASTRUBY_REGION']}" unless FaaStRuby::REGIONS.include?(ENV['FAASTRUBY_REGION'])
    ENV['FAASTRUBY_REGION']
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
faastruby-0.5.30 lib/faastruby/regions.rb
faastruby-0.5.29 lib/faastruby/regions.rb
faastruby-0.5.28 lib/faastruby/regions.rb
faastruby-0.5.27 lib/faastruby/regions.rb
faastruby-0.5.26 lib/faastruby/regions.rb
faastruby-0.5.25 lib/faastruby/regions.rb
faastruby-0.5.24 lib/faastruby/regions.rb
faastruby-0.5.23 lib/faastruby/regions.rb