load_remote_db 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/load_remote_db/version.rb +1 -1
- data/lib/tasks/load_remote_db.rake +4 -0
- 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: a438a7759892539f4761e4b9d005c38be14f1830
|
4
|
+
data.tar.gz: fe83fe27dce8796a70e03508d871014a163949bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ef6bc4958110f032a14abe85cc41d8e01e1807004209924dbefdd990d101bdc425cd5c10d720e5ec0c69900910bc4c8bb16a076bc47359035cbb69122a017ea
|
7
|
+
data.tar.gz: 44488831c0ceed6ba29a39954e1ab3c4e1b8874476540c796b81e4d10a0f7cec0d3c24349b76e952d04e31fb643426bf3670968521966c4db4648c2fcd6c77a5
|
@@ -32,7 +32,11 @@ class RemoteDbLoader
|
|
32
32
|
port = @port || 22
|
33
33
|
|
34
34
|
## get remote database config.yml
|
35
|
+
puts "ssh #{@server_user}@#{@server_ip} -p#{port} which ruby"
|
35
36
|
ruby_cmd = `ssh #{@server_user}@#{@server_ip} -p#{port} which ruby`.strip
|
37
|
+
if ruby_cmd.blank?
|
38
|
+
ruby_cmd = "/home/#{@server_user}/.rbenv/shims/ruby"
|
39
|
+
end
|
36
40
|
get_db_info_command = %{ssh #{@server_user}@#{@server_ip} -p#{port} \
|
37
41
|
"#{ruby_cmd} -e \
|
38
42
|
\\"require 'yaml'; \
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Huynh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|