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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1079e923a6ff8e7f9e668706a8d35064bdd0f5a7
4
- data.tar.gz: 8af655b8a7b4c21b5f616836060ec49efa5d6998
3
+ metadata.gz: a438a7759892539f4761e4b9d005c38be14f1830
4
+ data.tar.gz: fe83fe27dce8796a70e03508d871014a163949bd
5
5
  SHA512:
6
- metadata.gz: 830c4b249903cc9d65e92008714e9d0fc6230057cab34bc878ef9628bcc2aa3aa015cd588c41e727b80d4e7cb42bab20b93226a3cdaade564221998a32401241
7
- data.tar.gz: 6cdac2619968553c6d2c84272b99df043b42436927ee844ed6c8122951e3128def69e6178bcdfdff69651e96c9deb760a5969c6f8b7c970dfccbde1a4305de52
6
+ metadata.gz: 3ef6bc4958110f032a14abe85cc41d8e01e1807004209924dbefdd990d101bdc425cd5c10d720e5ec0c69900910bc4c8bb16a076bc47359035cbb69122a017ea
7
+ data.tar.gz: 44488831c0ceed6ba29a39954e1ab3c4e1b8874476540c796b81e4d10a0f7cec0d3c24349b76e952d04e31fb643426bf3670968521966c4db4648c2fcd6c77a5
@@ -1,3 +1,3 @@
1
1
  module LoadRemoteDb
2
- VERSION = '0.1.10'.freeze
2
+ VERSION = '0.1.11'.freeze
3
3
  end
@@ -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.10
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-05-04 00:00:00.000000000 Z
11
+ date: 2018-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler