engineyard-eycap 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/eycap/recipes/database.rb +3 -0
- data/lib/eycap.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -25,6 +25,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
25
25
|
run "mysqldump --add-drop-table -u #{dbuser} -h #{dbhost} -p #{environment_database} | bzip2 -c > #{backup_file}.bz2" do |ch, stream, out |
|
26
26
|
ch.send_data "#{dbpass}\n" if out=~ /^Enter password:/
|
27
27
|
end
|
28
|
+
run "mysql -u #{dbuser} -p -h #{staging_dbhost} #{staging_database} < #{backup_file}" do |ch, stream, out|
|
29
|
+
ch.send_data "#{dbpass}\n" if out=~ /^Enter password:/
|
30
|
+
end
|
28
31
|
else
|
29
32
|
run "pg_dump -W -c -U #{dbuser} -h #{production_dbhost} -f #{backup_file} #{production_database}" do |ch, stream, out|
|
30
33
|
ch.send_data "#{dbpass}\n" if out=~ /^Password:/
|
data/lib/eycap.rb
CHANGED