geordi 0.14.7 → 0.14.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dumple +9 -1
- data/lib/geordi/version.rb +1 -1
- metadata +4 -4
data/bin/dumple
CHANGED
@@ -65,7 +65,15 @@ begin
|
|
65
65
|
|
66
66
|
host = config['host'] || 'localhost'
|
67
67
|
|
68
|
-
|
68
|
+
case config['adapter']
|
69
|
+
when /mysql/
|
70
|
+
system "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path} -h#{host}"
|
71
|
+
when /postgres/
|
72
|
+
system "PGPASSWORD=\"#{config['password']}\" pg_dump -U\"#{config['username']}\" #{config['database']} -Fc -f #{dump_path} -h#{host}"
|
73
|
+
else
|
74
|
+
raise "Adapter \"#{config['adapter']} is not supported"
|
75
|
+
end
|
76
|
+
|
69
77
|
system "chmod 600 #{dump_path}"
|
70
78
|
|
71
79
|
dump_size_kb = (File.size(dump_path) / 1024).round
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 14
|
9
|
-
-
|
10
|
-
version: 0.14.
|
9
|
+
- 8
|
10
|
+
version: 0.14.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-03-
|
18
|
+
date: 2013-03-20 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|