Module: Katello::Mapping

Defined in:
app/lib/katello/mapping.rb

Defined Under Namespace

Classes: ImageFactoryNaming

Class Method Summary collapse

Class Method Details

.configurationObject



7
8
9
10
11
12
13
14
15
# File 'app/lib/katello/mapping.rb', line 7

def self.configuration
  return @config if @config
  mapping_file = '/etc/katello/mapping.yml'
  if File.readable?(mapping_file)
    @config = YAML.load_file(mapping_file)
  else
    @config = {}
  end
end