Module: Y2Network::ConfigReader

Defined in:
src/lib/y2network/config_reader.rb

Class Method Summary collapse

Class Method Details

.for(source, *opts) ⇒ Y2Network::Autoinst::ConfigReader, Y2Network::Sysconfig::ConfigReader

Config reader for a given source


26
27
28
29
30
31
# File 'src/lib/y2network/config_reader.rb', line 26

def self.for(source, *opts)
  require "y2network/#{source}/config_reader"
  modname = source.to_s.split("_").map(&:capitalize).join
  klass = Y2Network.const_get("#{modname}::ConfigReader")
  klass.new(*opts)
end