pdi 1.0.0.pre.alpha.1 → 1.0.0
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/CHANGELOG.md +3 -0
- data/README.md +5 -5
- data/lib/pdi/spoon/kitchen_error.rb +2 -0
- data/lib/pdi/spoon/pan_error.rb +2 -0
- data/lib/pdi/spoon.rb +2 -2
- data/lib/pdi/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc210f1ffd8bc1229082e29d8f2a54caea3d8e037d0b8e0e641265e171628b15
|
4
|
+
data.tar.gz: aae44f8e89bd3ebee8ca03164cef6b1b0ddb07af2fafa2e412e481123451bc10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c07ce29149acef3b7dae5528a777d7e0172124fe0d987383157f3deeacfc6d3ccdb9ee2d66a20fb778b91729a083946502ffc9c4d1c2ca9e4d7c54daf591bc
|
7
|
+
data.tar.gz: bb1724a9dfa3999a4a66ede97246b20b6945f231b087e132b55135c299637ca79fac556f80dee0e7782e73a1485f4bc24690000e7498a5bde854edb11955d032
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# PDI
|
2
2
|
|
3
3
|
---
|
4
4
|
|
@@ -36,14 +36,14 @@ Pull Requests are welcome for:
|
|
36
36
|
|
37
37
|
## Examples
|
38
38
|
|
39
|
-
All examples assume
|
39
|
+
All examples assume PDI has been installed to your home directory: `~/data-integration`.
|
40
40
|
|
41
41
|
### Creating a Spoon Instance
|
42
42
|
|
43
|
-
`Pdi::Spoon` is the common interface you will use when interacting with
|
43
|
+
`Pdi::Spoon` is the common interface you will use when interacting with PDI. It will use Pan and Kitchen for executing Spoon commands.
|
44
44
|
|
45
45
|
```ruby
|
46
|
-
spoon = Pdi::Spoon.new(dir:
|
46
|
+
spoon = Pdi::Spoon.new(dir: '~/data-integration')
|
47
47
|
```
|
48
48
|
|
49
49
|
Note: You can also override the names of the scripts using the `kitchen` and `pan` constructor keyword arguments. The defaults are `kitchen.sh` and `pan.sh`, respectively.
|
@@ -71,7 +71,7 @@ result = spoon.run(options)
|
|
71
71
|
|
72
72
|
You can access the raw command line results by tapping into the execution attribute of the result or error object.
|
73
73
|
|
74
|
-
Note: Not all options are currently supported. See
|
74
|
+
Note: Not all options are currently supported. See PDI's official references for [Pan](https://help.pentaho.com/Documentation/6.1/0L0/0Y0/070/000) and [Kitchen](https://help.pentaho.com/Documentation/6.1/0L0/0Y0/070/010) to see all options.
|
75
75
|
|
76
76
|
## Contributing
|
77
77
|
|
@@ -11,6 +11,8 @@ module Pdi
|
|
11
11
|
class Spoon
|
12
12
|
# This class subclasses Ruby's StandardError and provides a mapping to custom Kitchen
|
13
13
|
# specific error codes to messages.
|
14
|
+
# You can find the list of errors in Pentaho's documentation site, for example:
|
15
|
+
# https://help.pentaho.com/Documentation/8.0/Products/Data_Integration/Command_Line_Tools
|
14
16
|
class KitchenError < StandardError
|
15
17
|
MESSAGES = {
|
16
18
|
'1' => 'Errors occurred during processing',
|
data/lib/pdi/spoon/pan_error.rb
CHANGED
@@ -11,6 +11,8 @@ module Pdi
|
|
11
11
|
class Spoon
|
12
12
|
# This class subclasses Ruby's StandardError and provides a mapping to custom Pan
|
13
13
|
# specific error codes to messages.
|
14
|
+
# You can find the list of errors in Pentaho's documentation site, for example:
|
15
|
+
# https://help.pentaho.com/Documentation/8.0/Products/Data_Integration/Command_Line_Tools
|
14
16
|
class PanError < StandardError
|
15
17
|
MESSAGES = {
|
16
18
|
'1' => 'Errors occurred during processing',
|
data/lib/pdi/spoon.rb
CHANGED
@@ -12,7 +12,7 @@ require_relative 'spoon/parser'
|
|
12
12
|
require_relative 'spoon/result'
|
13
13
|
|
14
14
|
module Pdi
|
15
|
-
# This class is the main wrapper for
|
15
|
+
# This class is the main wrapper for PDI's pan and kitchen scripts.
|
16
16
|
class Spoon
|
17
17
|
DEFAULT_KITCHEN = 'kitchen.sh'
|
18
18
|
DEFAULT_PAN = 'pan.sh'
|
@@ -30,7 +30,7 @@ module Pdi
|
|
30
30
|
assert_required(:pan, pan)
|
31
31
|
|
32
32
|
@args = Array(args)
|
33
|
-
@dir = dir.to_s
|
33
|
+
@dir = File.expand_path(dir.to_s)
|
34
34
|
@kitchen = kitchen.to_s
|
35
35
|
@pan = pan.to_s
|
36
36
|
@executor = Executor.new
|
data/lib/pdi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ruggio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_hashable
|
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: 2.3.8
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubygems_version: 3.0.3
|
190
190
|
signing_key:
|