engineyard-eycap 0.4.4 → 0.4.5

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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.4.5 / 2009-03-03
2
+ * happy square root day!
3
+ * added the staging restore to db:clone_prod_to_staging
4
+
1
5
  == 0.4.4 / 2009-03-03
2
6
  * happy square root day!
3
7
  * fixed the *correct* database.rb file for the db:clone_prod_to_staging
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Eycap
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-eycap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Engine Yard