engineyard-eycap 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/lib/eycap/recipes/database.rb +2 -2
- data/lib/eycap.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
== 0.4.7 / 2009-05-12
|
|
2
|
+
* fixed bug in clone_prod_to_staging and clone_to_local db tasks for postgres
|
|
3
|
+
where the regex matching the password prompt for the restore was wrong
|
|
4
|
+
|
|
1
5
|
== 0.4.6 / 2009-03-24
|
|
2
6
|
* fixed bug to restore clone_prod_to_staging using the compressed file
|
|
3
7
|
|
|
@@ -33,7 +33,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
33
33
|
ch.send_data "#{dbpass}\n" if out=~ /^Password:/
|
|
34
34
|
end
|
|
35
35
|
run "bzcat #{backup_file}.bz2 | psql -W -U #{dbuser} -h #{staging_dbhost} #{staging_database}" do |ch, stream, out|
|
|
36
|
-
ch.send_data "#{dbpass}\n" if out=~ /^Password
|
|
36
|
+
ch.send_data "#{dbpass}\n" if out=~ /^Password/
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
run "rm -f #{backup_file}"
|
|
@@ -68,7 +68,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
68
68
|
end
|
|
69
69
|
else
|
|
70
70
|
run "bzcat /tmp/#{application}.sql.gz | psql -W -U #{development_info['username']} -h #{development_info['host']} #{development_info['database']}" do |ch, stream, out |
|
|
71
|
-
ch.send_data "#{development_info['password']}\n" if out=~ /^Password
|
|
71
|
+
ch.send_data "#{development_info['password']}\n" if out=~ /^Password/
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
end
|
data/lib/eycap.rb
CHANGED