Module: ForemanMaintain::Concerns::ForemanAndKatelloVersionMap

Included in:
Upstream
Defined in:
lib/foreman_maintain/concerns/foreman_and_katello_version_map.rb

Constant Summary collapse

FOREMAN_AND_KATELLO_VERSION_MAP =
{
  'nightly' => 'nightly',
}.freeze

Instance Method Summary collapse

Instance Method Details

#foreman_version_by_katello(version) ⇒ Object



8
9
10
# File 'lib/foreman_maintain/concerns/foreman_and_katello_version_map.rb', line 8

def foreman_version_by_katello(version)
  FOREMAN_AND_KATELLO_VERSION_MAP.key(version)
end

#katello_version_by_foreman(version) ⇒ Object



12
13
14
# File 'lib/foreman_maintain/concerns/foreman_and_katello_version_map.rb', line 12

def katello_version_by_foreman(version)
  FOREMAN_AND_KATELLO_VERSION_MAP.fetch(version)
end