redata 1.2.1 → 1.2.2
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.
- checksums.yaml +4 -4
- data/lib/redata/config.rb +4 -0
- data/lib/redata/database.rb +1 -0
- data/lib/redata/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: beb1e936a4f2b0ce83ef9c41d9ec3c4f69425f50
|
|
4
|
+
data.tar.gz: b323d2d3268c53250b40b621dfed6b0138721220
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 178a99c06a6d7587f9591e84748d98bf2cbea92406264c09be0ce432cab140bd10d089b7a7f5475dd07051882ff11e2199af7ebc6bad3622630a00917c494be2
|
|
7
|
+
data.tar.gz: becb4560e1c6e5b069eb4d804f8941c9173a35b56293be22d0345652b05e29480f8c3e1fc1c9acf5172fef3ec5561cccbf47cb9b0c10f1e19e32df0bb3bf610b
|
data/lib/redata/config.rb
CHANGED
|
@@ -20,6 +20,10 @@ module Redata
|
|
|
20
20
|
@params = @argv[:params]
|
|
21
21
|
|
|
22
22
|
# config file
|
|
23
|
+
unless @root.join('config', 'redata.yml').exist?
|
|
24
|
+
puts "Redata loading error: config/redata.yml not found"
|
|
25
|
+
exit 1
|
|
26
|
+
end
|
|
23
27
|
@config = YAML.load(ERB.new(File.read(@root.join 'config', 'redata.yml')).result(binding))
|
|
24
28
|
@s3_config = @config['s3']
|
|
25
29
|
@s3_config['bucket'] += "-dev" unless @env == 'production'
|
data/lib/redata/database.rb
CHANGED
|
@@ -3,6 +3,7 @@ module Redata
|
|
|
3
3
|
REDSHIFT_PORT = 5439
|
|
4
4
|
|
|
5
5
|
def initialize
|
|
6
|
+
Log.error! "ERROR: Database of #{RED.env} was not declared in config/red_access.yml" unless RED.root.join('config', 'red_access.yml').exist?
|
|
6
7
|
@config = YAML.load(ERB.new(File.read(RED.root.join 'config', 'red_access.yml')).result(binding))[RED.env]
|
|
7
8
|
Log.error! "ERROR: Database of #{RED.env} was not declared in config/red_access.yml" unless @config
|
|
8
9
|
|
data/lib/redata/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- goshan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
164
164
|
version: '0'
|
|
165
165
|
requirements: []
|
|
166
166
|
rubyforge_project:
|
|
167
|
-
rubygems_version: 2.
|
|
167
|
+
rubygems_version: 2.5.2
|
|
168
168
|
signing_key:
|
|
169
169
|
specification_version: 4
|
|
170
170
|
summary: a AWS Redshift data process controller
|