Module: KatelloForemanEngine::Helpers

Defined in:
lib/katello_foreman_engine/helpers.rb

Class Method Summary collapse

Class Method Details

.installation_media_path(repo_uri) ⇒ Object

takes repo uri from Katello and makes installation media url suitable for provisioning from it



7
8
9
10
11
# File 'lib/katello_foreman_engine/helpers.rb', line 7

def installation_media_path(repo_uri)
  path = repo_uri.sub(/\Ahttps/, 'http')
  path << "/" unless path.end_with?('/')
  return path
end