burner 1.0.0.pre.alpha.2 → 1.0.0.pre.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0499f990d92543479718a805654a9e070b3ea3fe9d8bf85aae170c16bdc47e51'
4
- data.tar.gz: 4dff77329307b83891fbb92f0a67aabbd4799b8600af14d15aa22c29cfdfc456
3
+ metadata.gz: ca551c813e385ad98bd5856ff74be816d43a57fe60003da061536b9a0a27b2a6
4
+ data.tar.gz: 484f1490830bd27d5eaeae2dd097ac8ee0a2024d0d231ae09f2607ab1275cd9e
5
5
  SHA512:
6
- metadata.gz: 42655eba14a6397bc815f8b9e989f8485fb25a0981840ea4c6e69c47b565e487eb1a01c03caa952b4685421130711eea2e07a1cf3a62102e80a49a484be34931
7
- data.tar.gz: a1be281d0e8f136ecbed2e3bb577584f1faeb5b9afc85a7fcf6b88601e86baff2f36077742e79ff03f7e4d41dcc2e2e15c150657774ec17dc0111721851352dd
6
+ metadata.gz: ee7bdfe6e3571918730bf6ff983d88b3cbb10514c90feae0df736167dfaeee4cce41f3e307c743012a528e43b0c0251e60b07008908e5a1e400aec7b65fe4005
7
+ data.tar.gz: ebd8cde5363fcc8c509d4856ec9978c14a1601d85f492a92f76e5e35dd10629fbd19566d51d13093b8216366035cbda9b4fbef610995796f17881d09e3e45d81
@@ -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)
@@ -8,5 +8,5 @@
8
8
  #
9
9
 
10
10
  module Burner
11
- VERSION = '1.0.0-alpha.2'
11
+ VERSION = '1.0.0-alpha.3'
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.2
4
+ version: 1.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio