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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b94bfa1cb3250c6abf9c65aaf86b24f2936a68fd
4
- data.tar.gz: f944311970b8c23eba58f54110da3818ff01f350
3
+ metadata.gz: 72fe5adc47f5e3a0248ef229cec6805c2dc97a7f
4
+ data.tar.gz: 4f3df6fd15d106a168d01acc254466dffa9c839b
5
5
  SHA512:
6
- metadata.gz: 3b49aeefef437800a0d15b2df1e3fcb9fe3bbf9aadd5e86f1e78eee55144b75b3988051ad11615b3e5d9c8de75a0127b3d06b922268c45daae63bccffd6a7cb7
7
- data.tar.gz: 000fa65c98431d0481029b22f6ae81a2a92d6f59486939c7d81a0806b6245cc8c0d218622376f879870971628e12093992757a7174eeaf358f585882e2782d53
6
+ metadata.gz: 6e188c279ac88f503576d5c3b1e67aaf0d6004e87cc874d950bf1242fbaf603cb299fd65a18e8c5009f5031efa16534381d235e2ecc3013f4d88ec82b4ef9b66
7
+ data.tar.gz: 34d3c6f6af86375fe2ec22fddb405faf7645b4a48b2c28fea3f71557c7f95a22865e325659be182ae0dcb5030bcf630b04a3d717d82ae821e897d9774b8ec18c
@@ -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! "scp -P #{port} #{user}@#{domain}:#{deploy_to}/#{current_path}/#{remote_backup_path}/#{backup_file} #{local_backup_path}/#{backup_file}"
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
- end
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! "scp -P #{port} #{local_backup_path}/#{backup_file} #{user}@#{domain}:#{deploy_to}/#{current_path}/#{remote_backup_path}/#{backup_file}"
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 < #{remote_backup_file}/#{backup_file}"
44
+ queue! "#{restore} $ARGS < #{deploy_to}/#{current_path}/#{remote_backup_path}/#{backup_file}"
45
45
  end
46
46
  end
47
47
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module DataSync
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  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.5
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-28 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler