geordi 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/bin/dumple +8 -2
- data/lib/geordi/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/bin/dumple
CHANGED
@@ -53,7 +53,7 @@ begin
|
|
53
53
|
Dir.mkdir(dump_dir)
|
54
54
|
system("chmod 700 #{dump_dir}")
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
if ARGV.find{ |arg| arg == '--for_download'}
|
58
58
|
dump_path = "#{dump_dir}/dump_for_download.dump"
|
59
59
|
else
|
@@ -66,7 +66,13 @@ begin
|
|
66
66
|
|
67
67
|
case config['adapter']
|
68
68
|
when /mysql/
|
69
|
-
|
69
|
+
command = "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path}"
|
70
|
+
if port = config['port']
|
71
|
+
command << " -h#{host || '127.0.0.1'} -P#{port}"
|
72
|
+
else
|
73
|
+
command << " -h#{host || 'localhost'}"
|
74
|
+
end
|
75
|
+
system(command)
|
70
76
|
when /postgres/
|
71
77
|
command = "PGPASSWORD=\"#{config['password']}\" pg_dump -U\"#{config['username']}\" #{config['database']} -Fc -f #{dump_path}"
|
72
78
|
if host
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|