Module: Concourse::Urls

Defined in:
lib/concourse/urls.rb

Class Method Summary collapse

Class Method Details

.api_url(concourse_url) ⇒ Object



5
6
7
# File 'lib/concourse/urls.rb', line 5

def self.api_url(concourse_url)
  "#{base_url(concourse_url)}/api/v1"
end

.base_url(concourse_url) ⇒ Object



21
22
23
# File 'lib/concourse/urls.rb', line 21

def self.base_url(concourse_url)
  concourse_url.chomp('/')
end

.info_url(concourse_url) ⇒ Object



17
18
19
# File 'lib/concourse/urls.rb', line 17

def self.info_url(concourse_url)
  "#{api_url(concourse_url)}/info"
end

.sky_issuer_token_url(concourse_url) ⇒ Object



13
14
15
# File 'lib/concourse/urls.rb', line 13

def self.sky_issuer_token_url(concourse_url)
  "#{base_url(concourse_url)}/sky/issuer/token"
end

.sky_token_url(concourse_url) ⇒ Object



9
10
11
# File 'lib/concourse/urls.rb', line 9

def self.sky_token_url(concourse_url)
  "#{base_url(concourse_url)}/sky/token"
end