Sha256: cef4a3f58d2a47b8ac3dc50b15c3aab1cc5ddd6e5f4a38ae23326f52a2c74bcd

Contents?: true

Size: 269 Bytes

Versions: 227

Compression:

Stored size: 269 Bytes

Contents

require 'net/http'

module Bosh
  module Stemcell
    module Aws
      class Region
        DEFAULT = 'us-east-1'

        def name
          Net::HTTP.get('169.254.169.254', '/latest/meta-data/placement/availability-zone').chop
        end
      end
    end
  end
end

Version data entries

227 entries across 227 versions & 1 rubygems

Version Path
bosh-stemcell-1.2776.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2768.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2765.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2754.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2751.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2749.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2748.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2745.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2744.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2743.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2739.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2690.4.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2732.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2719.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2717.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2710.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2707.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2682.1.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2697.0 lib/bosh/stemcell/aws/region.rb
bosh-stemcell-1.2693.0 lib/bosh/stemcell/aws/region.rb