load_remote_db 0.1.20 → 0.1.21

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
  SHA256:
3
- metadata.gz: 63c4996ab89ec10bbbbd08d0ccfc7ba12aa2b8b2bdc7970f22aae05218ab7ff2
4
- data.tar.gz: 1cd36f3db709b347ce06500c4a4a0d9412314143fb4758281a6e933867d9e394
3
+ metadata.gz: d06b4be8b95d62ce98257d2798e317c1d04067bd92ff07dbaf74de01b4e7caed
4
+ data.tar.gz: 6ee1b896b5dc8aa51e842d1762a84c1ee16f26030eca148912b25e1e867e3157
5
5
  SHA512:
6
- metadata.gz: 823d5742a29d7ac8b349994c8ee8476d2b5198f23c96bacd15d812776f92cfc112e52d0b23033edb5379df77a901f641424ad4d2225d68db81be55da7be0ffa1
7
- data.tar.gz: 9e6d656da8f0cc60272ed51eab4ad5f88889fb518949d57779b7d7b2f25dbfd3941e14fc2e1d2f334e5e69a10ca406a4d8089ec2a52e9fe3d1ddbfffd25bd997
6
+ metadata.gz: 3fd01cb1e4ac53d586647cab1555b27f3ebd4599bca1e7c3ee4c0d97f4a93ab62798b89eebd92784ca45aebcd92b41452fe90af79eae95e0d123dde38706b7f0
7
+ data.tar.gz: b5e35fb5c33d138cdf8658d793549b5523e031e3ea618778f41dcaa2fd5d7519d7e1fa4315c297453f32ea02e8647690b912aad5d2c66846f199a16207205511
@@ -1,3 +1,3 @@
1
1
  module LoadRemoteDb
2
- VERSION = '0.1.20'.freeze
2
+ VERSION = '0.1.21'.freeze
3
3
  end
@@ -128,7 +128,7 @@ class RemoteDbLoader
128
128
  end
129
129
 
130
130
  def method_missing(name, *args, &block)
131
- if name == :fetch && args[0] == :deploy_user
131
+ if name == :fetch && (args[0] == :deploy_user || args[0] == :user)
132
132
  return @server_user
133
133
  end
134
134
 
@@ -156,6 +156,9 @@ class RemoteDbLoader
156
156
  @application ||= args[1] if name == :set && args[0] == :application
157
157
  @full_app_name ||= args[1] if name == :set && args[0] == :full_app_name
158
158
  @port ||= args[1] if name == :set && args[0] == :port
159
- @deploy_to ||= args[1] if name == :set && args[0] == :deploy_to
159
+ if name == :set && args[0] == :deploy_to
160
+ puts args[1]
161
+ @deploy_to ||= args[1]
162
+ end
160
163
  end
161
164
  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.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Huynh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-26 00:00:00.000000000 Z
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler