lib/astrails/safe/mysqldump.rb in colin-safe-0.1.7 vs lib/astrails/safe/mysqldump.rb in colin-safe-0.1.8
- old
+ new
@@ -13,10 +13,10 @@
def mysql_password_file
Astrails::Safe::TmpFile.create("mysqldump") do |file|
file.puts "[mysqldump]"
%w/user password socket host port/.each do |k|
v = @config[k]
- file.puts "#{k} = #{v}" if v
+ file.puts "#{k} = '#{v}'" if v
end
end
end
def mysql_skip_tables