bricolage 5.23.1 → 5.23.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jobclass/adhoc.rb +20 -0
- data/lib/bricolage/version.rb +1 -1
- data/test/home/config/development/variable.yml +3 -0
- data/test/home/subsys/raw-vacuum.sql.job +1 -1
- metadata +3 -3
- data/test/home/Gemfile.lock +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff87430265aed2e808bdb4d3b9246e47bdd84a7
|
4
|
+
data.tar.gz: da318cd5fccbb09a0319b864a2da30c0f319eba8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adf6d84f64a35f37731a20d90525bad46b99696a85099b536918bacebc084a5af597a50a5db9ce3f5f7eaea2a24e5ee8811f62b11744a972907e1c1392fac867
|
7
|
+
data.tar.gz: 0f10319aa6f622ce885f6b27de40fcbd10f30cae4f1abab3f20e0245b05940b1a34918d0c6da0837ab2ec7431b3e544d7c4029527a84cb58e1d2bbb87ae820ba
|
data/jobclass/adhoc.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
JobClass.define('adhoc') {
|
2
|
+
parameters {|params|
|
3
|
+
params.add SQLFileParam.new
|
4
|
+
params.add DataSourceParam.new('sql')
|
5
|
+
}
|
6
|
+
|
7
|
+
parameters_filter {|job|
|
8
|
+
job.provide_sql_file_by_job_id
|
9
|
+
}
|
10
|
+
|
11
|
+
declarations {|params|
|
12
|
+
params['sql-file'].declarations
|
13
|
+
}
|
14
|
+
|
15
|
+
script {|params, script|
|
16
|
+
script.task(params['data-source']) {|task|
|
17
|
+
task.exec params['sql-file']
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
data/lib/bricolage/version.rb
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.23.
|
4
|
+
version: 5.23.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- README.md
|
134
134
|
- bin/bricolage
|
135
135
|
- bin/bricolage-jobnet
|
136
|
+
- jobclass/adhoc.rb
|
136
137
|
- jobclass/create.rb
|
137
138
|
- jobclass/createview.rb
|
138
139
|
- jobclass/exec.rb
|
@@ -196,7 +197,6 @@ files:
|
|
196
197
|
- libexec/sqldump.Linux
|
197
198
|
- test/all.rb
|
198
199
|
- test/home/Gemfile
|
199
|
-
- test/home/Gemfile.lock
|
200
200
|
- test/home/config/development/database.yml
|
201
201
|
- test/home/config/development/password.yml
|
202
202
|
- test/home/config/development/variable.yml
|
data/test/home/Gemfile.lock
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../..
|
3
|
-
specs:
|
4
|
-
bricolage (5.23.1)
|
5
|
-
aws-sdk (~> 2)
|
6
|
-
mysql2
|
7
|
-
pg (~> 0.18.0)
|
8
|
-
redis (>= 3.0.0)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
aws-sdk (2.7.5)
|
14
|
-
aws-sdk-resources (= 2.7.5)
|
15
|
-
aws-sdk-core (2.7.5)
|
16
|
-
aws-sigv4 (~> 1.0)
|
17
|
-
jmespath (~> 1.0)
|
18
|
-
aws-sdk-resources (2.7.5)
|
19
|
-
aws-sdk-core (= 2.7.5)
|
20
|
-
aws-sigv4 (1.0.0)
|
21
|
-
coderay (1.1.1)
|
22
|
-
jmespath (1.3.1)
|
23
|
-
method_source (0.8.2)
|
24
|
-
mysql2 (0.4.5)
|
25
|
-
pg (0.18.4)
|
26
|
-
pry (0.10.4)
|
27
|
-
coderay (~> 1.1.0)
|
28
|
-
method_source (~> 0.8.1)
|
29
|
-
slop (~> 3.4)
|
30
|
-
redis (3.3.3)
|
31
|
-
slop (3.6.0)
|
32
|
-
|
33
|
-
PLATFORMS
|
34
|
-
ruby
|
35
|
-
|
36
|
-
DEPENDENCIES
|
37
|
-
bricolage!
|
38
|
-
pry
|
39
|
-
|
40
|
-
BUNDLED WITH
|
41
|
-
1.14.3
|