Module: ForemanKatelloEngine::KatelloUrlsHelper

Defined in:
app/helpers/foreman_katello_engine/katello_urls_helper.rb

Instance Method Summary collapse

Instance Method Details

#katello_hostObject



9
10
11
# File 'app/helpers/foreman_katello_engine/katello_urls_helper.rb', line 9

def katello_host
  URI(katello_url).host unless katello_url.nil?
end

#katello_portObject



13
14
15
# File 'app/helpers/foreman_katello_engine/katello_urls_helper.rb', line 13

def katello_port
  URI(katello_url).port unless katello_url.nil?
end

#katello_urlObject



5
6
7
# File 'app/helpers/foreman_katello_engine/katello_urls_helper.rb', line 5

def katello_url
  return Setting['katello_url']
end

#subscription_manager_configuration_urlObject



17
18
19
# File 'app/helpers/foreman_katello_engine/katello_urls_helper.rb', line 17

def subscription_manager_configuration_url
  "http://#{katello_host}/pub/candlepin-cert-consumer-#{katello_host}-1.0-1.noarch.rpm"
end