bin/dumple in geordi-0.14.1 vs bin/dumple in geordi-0.14.2
- old
+ new
@@ -61,10 +61,12 @@
end
puts
puts "Dumping database for \"#{environment}\" environment ..."
- system "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path}"
+ host = config[:host] || 'localhost'
+
+ system "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path} -h#{host}"
system "chmod 600 #{dump_path}"
dump_size_kb = (File.size(dump_path) / 1024).round
puts "Dumped to #{dump_path} (#{dump_size_kb} KB)"