mina-data_sync 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/lib/mina/data_sync/tasks.rb +4 -4
- data/lib/mina/data_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72fe5adc47f5e3a0248ef229cec6805c2dc97a7f
|
4
|
+
data.tar.gz: 4f3df6fd15d106a168d01acc254466dffa9c839b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e188c279ac88f503576d5c3b1e67aaf0d6004e87cc874d950bf1242fbaf603cb299fd65a18e8c5009f5031efa16534381d235e2ecc3013f4d88ec82b4ef9b66
|
7
|
+
data.tar.gz: 34d3c6f6af86375fe2ec22fddb405faf7645b4a48b2c28fea3f71557c7f95a22865e325659be182ae0dcb5030bcf630b04a3d717d82ae821e897d9774b8ec18c
|
data/lib/mina/data_sync/tasks.rb
CHANGED
@@ -16,7 +16,7 @@ namespace :data_sync do
|
|
16
16
|
to :after_hook do
|
17
17
|
queue "echo '-----> Copying backup'"
|
18
18
|
queue "mkdir -p #{local_backup_path}"
|
19
|
-
queue! "
|
19
|
+
queue! "rsync --progress -e 'ssh -p #{port}' #{user}@#{domain}:#{deploy_to}/#{current_path}/#{remote_backup_path}/#{backup_file} #{local_backup_path}/#{backup_file}"
|
20
20
|
queue "echo '-----> Restoring database'"
|
21
21
|
if restore_data == 'true'
|
22
22
|
queue "#{CONF}"
|
@@ -24,7 +24,7 @@ namespace :data_sync do
|
|
24
24
|
queue! "#{restore} $ARGS < #{local_backup_path}/#{backup_file}"
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
end2
|
28
28
|
|
29
29
|
task push: :setup_sync do
|
30
30
|
to :before_hook do
|
@@ -33,7 +33,7 @@ namespace :data_sync do
|
|
33
33
|
queue "ARGS=$(conf #{database_path} development)"
|
34
34
|
queue! "#{dump} $ARGS #{options} > #{local_backup_path}/#{backup_file}"
|
35
35
|
queue "echo '-----> Copying backup'"
|
36
|
-
queue! "
|
36
|
+
queue! "rsync --progress -e 'ssh -p #{port}' #{local_backup_path}/#{backup_file} #{user}@#{domain}:#{deploy_to}/#{current_path}/#{remote_backup_path}/#{backup_file}"
|
37
37
|
end
|
38
38
|
|
39
39
|
if restore_data == 'true'
|
@@ -41,7 +41,7 @@ namespace :data_sync do
|
|
41
41
|
queue "cd #{deploy_to}/#{current_path}"
|
42
42
|
queue "#{CONF}"
|
43
43
|
queue "ARGS=$(conf #{database_path} #{rails_env})"
|
44
|
-
queue! "#{restore} $ARGS < #{
|
44
|
+
queue! "#{restore} $ARGS < #{deploy_to}/#{current_path}/#{remote_backup_path}/#{backup_file}"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-data_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|