load_remote_db 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/load_remote_db/version.rb +1 -1
- data/lib/tasks/load_remote_db.rake +3 -5
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e4d920151210f82bd45ee8d11875b082ba0db033173fa52f1500c7edcf2f622c
|
4
|
+
data.tar.gz: 3deeacfb55c427c52b45cd59b760732ae09289fa6a5274db4c2e8a360db56640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466c3a6c4cf769f1a342ad469a313e065e66d9c762ffcbce527fa487989b25c0f15ca8a0f73081a63c47668be6ef90127e4493fe8bde0396946694ce5ed643d9
|
7
|
+
data.tar.gz: b3fee5e8923b72fed6bb7908b78fa47f7eaa4a16f61a624032f13756a34f73c90bf519e449957a36343fb7d747cb34fb97643dcc5e52b6e12887a121915c6336
|
@@ -47,9 +47,7 @@ class RemoteDbLoader
|
|
47
47
|
|
48
48
|
puts get_db_info_command
|
49
49
|
remote_db_config = eval `#{get_db_info_command}`
|
50
|
-
|
51
|
-
remote_db_password = remote_db_config["password"]
|
52
|
-
remote_db_host = remote_db_config["host"] || 'localhost'
|
50
|
+
http://203.149.141.68:8080/xxremote_db_host = remote_db_config["host"] || 'localhost'
|
53
51
|
remote_db_name = remote_db_config["database"]
|
54
52
|
|
55
53
|
## run the real backup
|
@@ -115,10 +113,10 @@ class RemoteDbLoader
|
|
115
113
|
|
116
114
|
if to_be_rsync_folder
|
117
115
|
puts "Synchorinizing #{to_be_rsync_folder} folder..."
|
118
|
-
`mkdir -p
|
116
|
+
`mkdir -p #{to_be_rsync_folder}`
|
119
117
|
sync_folder_cmd = %(rsync -r \
|
120
118
|
#{@server_user}@#{@server_ip}:#{shared_path}/#{to_be_rsync_folder} \
|
121
|
-
'
|
119
|
+
'#{to_be_rsync_folder}')
|
122
120
|
puts sync_folder_cmd
|
123
121
|
system(sync_folder_cmd)
|
124
122
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: load_remote_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Huynh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.6.11
|
79
|
+
rubygems_version: 3.0.3
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: Load MySQL Remote DB for Mina/Capistrano
|