Module: Vantage::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/vantage/config.rb

Instance Method Summary collapse

Instance Method Details

#endpoint(name) ⇒ Object



13
14
15
16
17
# File 'lib/vantage/config.rb', line 13

def endpoint(name)
  uri = endpoint_base
  uri.host = "#{name}.#{uri.host}"
  uri
end

#endpoint_baseObject



9
10
11
# File 'lib/vantage/config.rb', line 9

def endpoint_base
  URI("http://anon:[email protected]/checks")
end

#point_listObject



5
6
7
# File 'lib/vantage/config.rb', line 5

def point_list
  %w[aws-us-east-1]
end