load_remote_db 0.1.4 → 0.1.5
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 +2 -2
- 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: e39c071006f52163ab4dbe97f5f202d9982da308
|
4
|
+
data.tar.gz: c717ccdd1a6322cab4d0e0be00e3e117eba0ff08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '03930c3fc8d856960a40ab88cd7c083f75f4dc1336b67f469b013356c9c42b6c3281e09ce73438ce3be85d3aa6cdbab0ab6831dbd402bce93e0cba7610d359d4'
|
7
|
+
data.tar.gz: 89ab0bf5227db8723c980bf350cea08fff2c235f01c326b34e9d4432c468c028f34e871f6b074fc3b5d8cb35c87e400e1d5a052b27545b5e28014521f2b3fe37
|
@@ -20,7 +20,7 @@ class RemoteDbLoader
|
|
20
20
|
"#{Rails.root}/config/database.yml"
|
21
21
|
development_db = YAML.load_file(database_yml)['development']
|
22
22
|
|
23
|
-
username = development_db['username']
|
23
|
+
username = development_db['username'] || 'root'
|
24
24
|
password = development_db['password']
|
25
25
|
database = development_db['database']
|
26
26
|
|
@@ -35,7 +35,7 @@ class RemoteDbLoader
|
|
35
35
|
shared_path = "#{@deploy_to}/shared"
|
36
36
|
|
37
37
|
remote_db_config = eval `#{get_db_info_command}`
|
38
|
-
remote_db_username = remote_db_config["username"]
|
38
|
+
remote_db_username = remote_db_config["username"] || 'root'
|
39
39
|
remote_db_password = remote_db_config["password"]
|
40
40
|
remote_db_host = remote_db_config["host"]
|
41
41
|
remote_db_name = remote_db_config["database"]
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Huynh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|