Module: Y2Network::ConfigWriter

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

Class Method Summary collapse

Class Method Details

.for(source) ⇒ Y2Network::Sysconfig::ConfigWriter

Config writer for a given source


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

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