Skip to content

Commit

Permalink
fix variable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
tilsammans committed Aug 4, 2011
1 parent 9e0a238 commit 22c4c51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/capistrano/transmit.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 22c4c51

Please sign in to comment.