Permalink
Browse files

Merge pull request #112 from jeremykendall/patch-namespace-database-d…

…ump-pgsql

Removes --password flag from pg_dump
  • Loading branch information...
2 parents 2fb98e7 + 8b867e4 commit 004759c18ece037e6a62efdebd3b27df489a4bbb @everzet committed Apr 17, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/symfony1.rb
  2. +2 −2 lib/symfony2.rb
View
@@ -451,7 +451,7 @@ def load_database_config(data, env)
puts data
end
when 'pgsql'
- run "pg_dump -U #{config['user']} --password='#{config['pass']}' #{config['db']} | gzip -c > #{file}" do |ch, stream, data|
+ run "pg_dump -U #{config['user']} #{config['db']} | gzip -c > #{file}" do |ch, stream, data|
puts data
end
end
@@ -481,7 +481,7 @@ def load_database_config(data, env)
when 'mysql'
`mysqldump -u#{config['user']} --password=\"#{config['pass']}\" #{config['db']} > #{tmpfile}`
when 'pgsql'
- `pg_dump -U #{config['user']} --password=\"#{config['pass']}\" #{config['db']} > #{tmpfile}`
+ `pg_dump -U #{config['user']} #{config['db']} > #{tmpfile}`
end
File.open(tmpfile, "r+") do |f|
gz = Zlib::GzipWriter.open(file)
View
@@ -74,7 +74,7 @@ def load_database_config(data, env)
puts data
end
when 'pdo_pgsql'
- run "pg_dump -U #{config['database_user']} --password='#{config['database_password']}' #{config['database_name']} | gzip -c > #{file}" do |ch, stream, data|
+ run "pg_dump -U #{config['database_user']} #{config['database_name']} | gzip -c > #{file}" do |ch, stream, data|
puts data
end
end
@@ -104,7 +104,7 @@ def load_database_config(data, env)
when 'pdo_mysql'
`mysqldump -u#{config['database_user']} --password=\"#{config['database_password']}\" #{config['database_name']} > #{tmpfile}`
when 'pdo_pgsql'
- `pg_dump -U #{config['database_user']} --password=\"#{config['database_password']}\" #{config['database_name']} > #{tmpfile}`
+ `pg_dump -U #{config['database_user']} #{config['database_name']} > #{tmpfile}`
end
File.open(tmpfile, "r+") do |f|
gz = Zlib::GzipWriter.open(file)

0 comments on commit 004759c

Please sign in to comment.