db2fog 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY +2 -0
- data/lib/db2fog.rb +1 -5
- metadata +4 -5
data/HISTORY
CHANGED
data/lib/db2fog.rb
CHANGED
|
@@ -63,11 +63,6 @@ class DB2Fog
|
|
|
63
63
|
"most-recent-dump-#{db_credentials[:database]}.txt"
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
def run(command)
|
|
67
|
-
result = system(command)
|
|
68
|
-
raise("error, process exited with status #{$?.exitstatus}") unless result
|
|
69
|
-
end
|
|
70
|
-
|
|
71
66
|
def db_credentials
|
|
72
67
|
ActiveRecord::Base.connection.instance_eval { @config } # Dodgy!
|
|
73
68
|
end
|
|
@@ -108,6 +103,7 @@ class DB2Fog
|
|
|
108
103
|
cmd += " -u #{@credentials[:username]} " unless @credentials[:username].nil?
|
|
109
104
|
cmd += " -p'#{@credentials[:password]}'" unless @credentials[:password].nil?
|
|
110
105
|
cmd += " -h '#{@credentials[:host]}'" unless @credentials[:host].nil?
|
|
106
|
+
cmd += " --default-character-set=#{@credentials[:encoding]}" unless @credentials[:encoding].nil?
|
|
111
107
|
cmd += " #{@credentials[:database]}"
|
|
112
108
|
end
|
|
113
109
|
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 5
|
|
8
|
-
-
|
|
9
|
-
version: 0.5.
|
|
8
|
+
- 1
|
|
9
|
+
version: 0.5.1
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- James Healy
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-08-
|
|
17
|
+
date: 2011-08-29 00:00:00 +10:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -56,8 +56,7 @@ dependencies:
|
|
|
56
56
|
segments:
|
|
57
57
|
- 0
|
|
58
58
|
- 9
|
|
59
|
-
|
|
60
|
-
version: 0.9.0
|
|
59
|
+
version: "0.9"
|
|
61
60
|
type: :runtime
|
|
62
61
|
version_requirements: *id003
|
|
63
62
|
- !ruby/object:Gem::Dependency
|