burner 1.0.0.pre.alpha.2 → 1.0.0.pre.alpha.3
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/burner/cli.rb +6 -4
- data/lib/burner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca551c813e385ad98bd5856ff74be816d43a57fe60003da061536b9a0a27b2a6
|
4
|
+
data.tar.gz: 484f1490830bd27d5eaeae2dd097ac8ee0a2024d0d231ae09f2607ab1275cd9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee7bdfe6e3571918730bf6ff983d88b3cbb10514c90feae0df736167dfaeee4cce41f3e307c743012a528e43b0c0251e60b07008908e5a1e400aec7b65fe4005
|
7
|
+
data.tar.gz: ebd8cde5363fcc8c509d4856ec9978c14a1601d85f492a92f76e5e35dd10629fbd19566d51d13093b8216366035cbda9b4fbef610995796f17881d09e3e45d81
|
data/lib/burner/cli.rb
CHANGED
@@ -12,12 +12,8 @@ require_relative 'pipeline'
|
|
12
12
|
module Burner
|
13
13
|
# Process a single string as a Pipeline. This is mainly to back the command-line interface.
|
14
14
|
class Cli
|
15
|
-
extend Forwardable
|
16
|
-
|
17
15
|
attr_reader :params, :pipeline
|
18
16
|
|
19
|
-
def_delegators :pipeline, :execute
|
20
|
-
|
21
17
|
def initialize(args)
|
22
18
|
path = args.first
|
23
19
|
cli_params = extract_cli_params(args)
|
@@ -26,6 +22,12 @@ module Burner
|
|
26
22
|
@params = (config['params'] || {}).merge(cli_params)
|
27
23
|
end
|
28
24
|
|
25
|
+
def execute(output: Output.new, params: {}, payload: Payload.new)
|
26
|
+
final_params = @params.merge(params || {})
|
27
|
+
|
28
|
+
pipeline.execute(output: output, params: final_params, payload: payload)
|
29
|
+
end
|
30
|
+
|
29
31
|
private
|
30
32
|
|
31
33
|
def read_yaml(path)
|
data/lib/burner/version.rb
CHANGED