Skip to content

Commit

Permalink
Remove (wrong) default value from ConfigReader.for method
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs authored and mchf committed Mar 21, 2019
1 parent 803d7b0 commit 2a6a911
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/y2network/config_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@
module Y2Network
# This module contains a set of classes to read the network configuration from the system
#
# For the time being, only the wicked reader ({Y2Network::ConfigReader::Wicked}) reader is
# For the time being, only the wicked reader ({Y2Network::ConfigReader::Sysconfig}) reader is
# available.
module ConfigReader
def self.for(source = :wicked)
# Config reader for a given source
#
# @param source [Symbol] Source name (e.g., :sysconfig)
# @return [#config] Configuration reader from {Y2Network::ConfigReader}
def self.for(source)
require "y2network/config_reader/#{source}"
name = source.to_s.split("_").map(&:capitalize).join
klass = const_get(name)
Expand Down

0 comments on commit 2a6a911

Please sign in to comment.