naginegi 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naginegi.rb +8 -1
- data/lib/naginegi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f46ab7c3279930d159dc1603539e4dadfdbd97e1587f76896171548bb470bd62
|
4
|
+
data.tar.gz: 4e96e4bb63bbe2140214e4a7f0b99741b4ef21eb3401bc0c94ba8ead1bc08891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd8cb3b88f223af9c9cb8c7d9a18679a5660080bed3fd7caf8f62e9ab2432bfa5189c10a26a4bf77406f021097d07e06159726b1bfdca1d68694c9386849963
|
7
|
+
data.tar.gz: e75185eb05726bdf2f39fc46dbe5d14f06ad3f5959c30009aedcb4afd31023c1f29333f66a2d1e4e67a8598e49ec3c65431bac85f377a46de1a060378ddab156
|
data/lib/naginegi.rb
CHANGED
@@ -20,7 +20,7 @@ module Naginegi
|
|
20
20
|
Naginegi::EmbulkConfig.new.generate_config(@db_configs, bq_config)
|
21
21
|
end
|
22
22
|
|
23
|
-
def run(bq_config, target_table_names = [], retry_max =
|
23
|
+
def run(bq_config, target_table_names = [], retry_max = 2)
|
24
24
|
cmd = 'embulk --version'
|
25
25
|
unless system(cmd)
|
26
26
|
@logger.error('Cannot execute Embulk!!')
|
@@ -29,6 +29,13 @@ module Naginegi
|
|
29
29
|
end
|
30
30
|
|
31
31
|
error_tables = run_and_retry(bq_config, target_table_names, retry_max, 0)
|
32
|
+
unless error_tables.empty?
|
33
|
+
@logger.error('------------------------------------')
|
34
|
+
@logger.error('[FAILED TABLES]')
|
35
|
+
error_tables.each { |table| @logger.error(table) }
|
36
|
+
@logger.error('------------------------------------')
|
37
|
+
end
|
38
|
+
|
32
39
|
error_tables.empty?
|
33
40
|
end
|
34
41
|
|
data/lib/naginegi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naginegi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cobot00
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|