geordi 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +1 -1
- data/bin/dumple +9 -8
- data/lib/geordi/version.rb +1 -1
- metadata +12 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ce327c7fc6bb66a9923e3010629755280aa0bae5
|
4
|
+
data.tar.gz: 0c9601c9cc26c5a23aaf4932b6d1aa3a2ba4194b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 42b4aeecacf5c17f8a9dc12c6df02c281ea609c3eebd35b95ba4baeadc127cee8a5101572d2c6129f7d8908525378fec3b1ca954ca48d804c4e4fe1b35e6adb5
|
7
|
+
data.tar.gz: 58c829d2354e8f70eeb1412f98d0e77283eb1f51b382aa067b3f57a8ff3656309a90cac32de42df624648b0d8a0141129dc78c0a6ac7357683b1a3d28ff62b8e
|
data/Gemfile.lock
CHANGED
data/bin/dumple
CHANGED
@@ -63,24 +63,25 @@ begin
|
|
63
63
|
puts "> Dumping database for \"#{environment}\" environment ..."
|
64
64
|
|
65
65
|
host = config['host']
|
66
|
+
port = config['port']
|
66
67
|
|
67
68
|
case config['adapter']
|
68
69
|
when /mysql/
|
69
70
|
command = "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path}"
|
70
|
-
if port
|
71
|
+
if port
|
71
72
|
command << " -h#{host || '127.0.0.1'} -P#{port}"
|
72
73
|
else
|
73
74
|
command << " -h#{host || 'localhost'}"
|
74
75
|
end
|
76
|
+
|
75
77
|
system(command)
|
76
78
|
when /postgres/
|
77
|
-
command = "PGPASSWORD=\"#{config['password']}\" pg_dump
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
end
|
79
|
+
command = "PGPASSWORD=\"#{config['password']}\" pg_dump #{config['database']} --format=custom --clean"
|
80
|
+
command << " --file=#{dump_path}"
|
81
|
+
command << " --username=\"#{config['username']}\""
|
82
|
+
command << " --host=#{host}" if host
|
83
|
+
command << " --port=#{port}" if port
|
84
|
+
|
84
85
|
system(command)
|
85
86
|
else
|
86
87
|
raise "Adapter \"#{config['adapter']} is not supported"
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
5
|
-
prerelease:
|
4
|
+
version: 1.6.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Henning Koch
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: thor
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.18.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.18.0
|
30
27
|
description: Collection of command line tools we use in our daily work with Ruby,
|
@@ -53,8 +50,8 @@ executables:
|
|
53
50
|
extensions: []
|
54
51
|
extra_rdoc_files: []
|
55
52
|
files:
|
56
|
-
- .gitignore
|
57
|
-
- .ruby-version
|
53
|
+
- ".gitignore"
|
54
|
+
- ".ruby-version"
|
58
55
|
- Gemfile
|
59
56
|
- Gemfile.lock
|
60
57
|
- LICENSE
|
@@ -132,29 +129,26 @@ files:
|
|
132
129
|
homepage: http://makandra.com
|
133
130
|
licenses:
|
134
131
|
- MIT
|
135
|
-
|
136
|
-
|
137
|
-
'
|
132
|
+
metadata: {}
|
133
|
+
post_install_message: "* Binary `geordi` installed\n"
|
138
134
|
rdoc_options: []
|
139
135
|
require_paths:
|
140
136
|
- lib
|
141
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
138
|
requirements:
|
144
|
-
- -
|
139
|
+
- - ">="
|
145
140
|
- !ruby/object:Gem::Version
|
146
141
|
version: '0'
|
147
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
143
|
requirements:
|
150
|
-
- -
|
144
|
+
- - ">="
|
151
145
|
- !ruby/object:Gem::Version
|
152
146
|
version: '0'
|
153
147
|
requirements: []
|
154
148
|
rubyforge_project: geordi
|
155
|
-
rubygems_version:
|
149
|
+
rubygems_version: 2.6.8
|
156
150
|
signing_key:
|
157
|
-
specification_version:
|
151
|
+
specification_version: 4
|
158
152
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|
159
153
|
and Linux at makandra.
|
160
154
|
test_files: []
|