lib/sconb/ssh_config.rb in sconb-1.2.0 vs lib/sconb/ssh_config.rb in sconb-1.2.1

- old
+ new

@@ -1,14 +1,14 @@ module Sconb module SSHConfig class << self - def load(path, regexp_str = '.*', options = []) + def load(path, regexp_str = '.*', options = {}) file = File.expand_path(path) content = File.readable?(file) ? File.open(file).read : nil parse(content, regexp_str, options) end - def parse(content, regexp_str = '.*', options = []) + def parse(content, regexp_str = '.*', options = {}) @regexp = Regexp.new(regexp_str) @options = options @content = content @configs = {} return @configs if content.nil?