Permalink
Browse files

fix variable setting

  • Loading branch information...
1 parent 9e0a238 commit 22c4c511d60f06861a5599448372038c9d7fded2 @tilsammans committed Aug 4, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/capistrano/transmit.rb
@@ -5,10 +5,10 @@
Capistrano::Configuration.instance.load do
_cset :user, ""
- _cset :db_config { capture "cat #{current_path}/config/database.yml" }
- _cset :db_remote { YAML::load(db_config)['production'] }
- _cset :db_local { YAML::load_file("config/database.yml")['development'] }
- _cset :dumpfile { "#{current_path}/tmp/#{db_remote['database']}.sql.gz" }
+ _cset :db_config, { capture "cat #{current_path}/config/database.yml" }
+ _cset :db_remote, { YAML::load(db_config)['production'] }
+ _cset :db_local, { YAML::load_file("config/database.yml")['development'] }
+ _cset :dumpfile, { "#{current_path}/tmp/#{db_remote['database']}.sql.gz" }
after "transmit:get:mysql", "transmit:cleanup"
after "transmit:put:mysql", "transmit:cleanup"

0 comments on commit 22c4c51

Please sign in to comment.