engineyard-eycap 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/eycap/recipes/database.rb +1 -1
- data/lib/eycap.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -21,7 +21,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
21
21
|
|
22
22
|
if @environment_info['adapter'] == 'mysql'
|
23
23
|
dbhost = @environment_info['host']
|
24
|
-
dbhost = environment_dbhost.sub('-master', '') + '-replica'
|
24
|
+
dbhost = environment_dbhost.sub('-master', '') + '-replica'
|
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
|
data/lib/eycap.rb
CHANGED