capistrano_transmit 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/capistrano_transmit.gemspec +1 -1
- data/lib/capistrano/transmit.rb +4 -4
- metadata +1 -1
data/capistrano_transmit.gemspec
CHANGED
data/lib/capistrano/transmit.rb
CHANGED
@@ -5,10 +5,10 @@ end
|
|
5
5
|
Capistrano::Configuration.instance.load do
|
6
6
|
|
7
7
|
_cset :user, ""
|
8
|
-
_cset :db_config
|
9
|
-
_cset :db_remote
|
10
|
-
_cset :db_local
|
11
|
-
_cset :dumpfile
|
8
|
+
_cset :db_config, { capture "cat #{current_path}/config/database.yml" }
|
9
|
+
_cset :db_remote, { YAML::load(db_config)['production'] }
|
10
|
+
_cset :db_local, { YAML::load_file("config/database.yml")['development'] }
|
11
|
+
_cset :dumpfile, { "#{current_path}/tmp/#{db_remote['database']}.sql.gz" }
|
12
12
|
|
13
13
|
after "transmit:get:mysql", "transmit:cleanup"
|
14
14
|
after "transmit:put:mysql", "transmit:cleanup"
|