geordi 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/geordi/dump_loader.rb +4 -4
- data/lib/geordi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTk2YTFmM2FlNWE5ZWU2YWU2OGIwNjRhZThhYTZhYzE1OGI3ZmVkNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWJiMjlmNWQzNTdhMmI1NTMyOTc5NTBhYWVlN2Q2Y2M3ZjBjNDMxMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmI5ZDYzMWZkNWRmYzAxZDBkZjFiOTNkMThjZDFlNjUyMDlhNWNhMmJiNGFh
|
10
|
+
MzJiZGE5Zjc0MjhkZTkyYjgxYjU1ODExOGMyMjM3ZmNjZmI3Mzk1MGFhNDc1
|
11
|
+
NWM4ZTNjYWEwYzRhYmI5MTNkMDcxMjAwMmUyMDFhOWM4YTA3OWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGQzZTJkNGJkMmY3Y2FjYmFiNGFkNTg4YzVmMmY0NmM2OTViOTNhN2FlYmNm
|
14
|
+
Nzg5NjUyZTcxMTRhNjNkZTZiMjE4NDM5MGYzNjFjMThkNGYzYzVmMTQ0YmYy
|
15
|
+
MDUyZmE4ODg0NGYxNmY1YWE2ZjE5ZmFkNjkwN2Y2MzA5ZWIwMDA=
|
data/lib/geordi/dump_loader.rb
CHANGED
@@ -21,8 +21,8 @@ module Geordi
|
|
21
21
|
|
22
22
|
def mysql_command
|
23
23
|
command = 'mysql --silent'
|
24
|
-
command << ' -p' << config['password']
|
25
|
-
command << ' -u' << config['username']
|
24
|
+
command << ' -p' << config['password'] if config['password']
|
25
|
+
command << ' -u' << config['username'] if config['username']
|
26
26
|
command << ' --default-character-set=utf8'
|
27
27
|
command << ' ' << config['database']
|
28
28
|
command << ' < ' << dump_file
|
@@ -32,8 +32,8 @@ module Geordi
|
|
32
32
|
def postgresql_command
|
33
33
|
ENV['PGPASSWORD'] = config['password']
|
34
34
|
command = 'pg_restore --no-owner --clean'
|
35
|
-
command << ' --username=' << config['username']
|
36
|
-
command << ' --host=' << config['host']
|
35
|
+
command << ' --username=' << config['username'] if config['username']
|
36
|
+
command << ' --host=' << config['host'] if config['host']
|
37
37
|
command << ' --dbname=' << config['database']
|
38
38
|
command << ' ' << dump_file
|
39
39
|
end
|
data/lib/geordi/version.rb
CHANGED