lib/dumper/cli.rb in dumper-1.7.1 vs lib/dumper/cli.rb in dumper-1.7.2
- old
+ new
@@ -14,16 +14,16 @@
end
no_tasks do
def check_ip
print 'Checking IP address... '
- @ip = Dumper::Utility::IP.new
- print "#{@ip.ip} => "
- if @ip.ipaddr.private?
- puts "private IP, #{fetch_will_fail_warning}".color(:red)
+ ip = Dumper::Utility::IP.new
+ print "#{ip.address} => "
+ if ip.private?
+ puts "Private IP, #{fetch_will_fail_warning}".color(:red)
else
- puts 'public IP, good'.color(:green)
+ puts 'Public IP, good'.color(:green)
end
end
def check_cnf
print 'Checking my.cnf... '
@@ -62,10 +62,10 @@
puts 'good'.color(:green)
end
end
def fetch_will_fail_warning
- 'warning - fetch from dumper.io to this server will fail, you will need to use the dumper gem with rails.'
+ 'warning - remote fetch from dumper.io to this server will fail. You will need to use the dumper gem with rails.'
end
end
end
end