bricolage 5.12.2 → 5.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jobclass/my-migrate.rb +2 -0
- data/lib/bricolage/version.rb +1 -1
- data/libexec/sqldump.Darwin +0 -0
- data/libexec/sqldump.Linux +0 -0
- data/test/home/Gemfile.lock +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247e0b7b78e35324997d2ae53ddb4b346817c6f5
|
4
|
+
data.tar.gz: 3d3e8a97e0802a507fa71c6117d5626854cc77ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aecb3e9be927e1914ad12ea86b438c6ba2e5d876368e4ea0befdaf69f640be5e92e298b117554b1681250d9dc1fae38c66fa6282cfd9756dbb4760368bc0b6b
|
7
|
+
data.tar.gz: 510d226a01d49707bed15859bf6d1593efe6a3b4058089e4ba693824b6bef3410852f0bcabd7a162657c463b1293da92a9185c128c2f802ef8fee0832b6f6fa9
|
data/jobclass/my-migrate.rb
CHANGED
@@ -7,6 +7,7 @@ JobClass.define('my-migrate') {
|
|
7
7
|
params.add DataSourceParam.new('mysql', 'src-ds', 'Source data source.')
|
8
8
|
params.add DestFileParam.new('tmp-file', 'PATH', 'Temporary local file path.')
|
9
9
|
params.add OptionalBoolParam.new('sqldump', 'If true, use sqldump command to dump, only on available.', default: true)
|
10
|
+
params.add SQLFileParam.new(optional: true)
|
10
11
|
|
11
12
|
# Put
|
12
13
|
params.add DestFileParam.new('s3-file', 'PATH', 'Temporary S3 file path.')
|
@@ -99,6 +100,7 @@ JobClass.define('my-migrate') {
|
|
99
100
|
}
|
100
101
|
|
101
102
|
def sql_statement(params)
|
103
|
+
return params['sql-file'] if params['sql-file']
|
102
104
|
srcs = params['src-tables']
|
103
105
|
raise ParameterError, "src-tables must be singleton when no sql-file is given" unless srcs.size == 1
|
104
106
|
src_table_var = srcs.keys.first
|
data/lib/bricolage/version.rb
CHANGED
data/libexec/sqldump.Darwin
CHANGED
Binary file
|
data/libexec/sqldump.Linux
CHANGED
Binary file
|
data/test/home/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricolage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.12.
|
4
|
+
version: 5.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|