diff options
-rwxr-xr-x | bin/mog | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -14,8 +14,7 @@ if md5_trailer_nodes = ENV["MD5_TRAILER_NODES"] end # this is to be compatible with config files used by the Perl tools -def parse_config_file!(path, overwrite = false) - dest = {} +def parse_config_file!(path, dest = {}) File.open(path).each_line do |line| case line when /^(domain|class)\s*=\s*(\S+)/ @@ -79,7 +78,7 @@ ARGV.options do |x| end # parse the config file specified at the command-line -file_cfg = config_file ? parse_config_file!(config_file, true) : {} +file_cfg = config_file ? parse_config_file!(config_file) : {} # read environment variables, too. This Ruby API favors the term # "hosts", however upstream MogileFS teminology favors "trackers" instead. |