lib/dumper/cli.rb in dumper-0.0.2 vs lib/dumper/cli.rb in dumper-0.0.3

- old
+ new

@@ -27,10 +27,10 @@ ['/etc/my.cnf', '/etc/mysql/my.cnf', '/usr/etc/my.cnf', '~/.my.cnf'].each do |name| fullpath = File.expand_path(name) next unless File.exist?(fullpath) File.readlines(fullpath).each do |line| if line =~ /^bind-address/ - bound = line.split('=').strip + bound = line.split('=').last.strip break end end end if bound