lib/astrails/safe/mysqldump.rb in astrails-safe-0.2.6 vs lib/astrails/safe/mysqldump.rb in astrails-safe-0.2.7
- old
+ new
@@ -13,10 +13,11 @@
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
+ # values are quoted if needed
+ file.puts "#{k} = #{v.inspect}" if v
end
end
end
def mysql_skip_tables
\ No newline at end of file