burner 1.0.0.pre.alpha.1 → 1.0.0.pre.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/burner +1 -1
- data/lib/burner.rb +1 -0
- data/lib/burner/cli.rb +4 -4
- data/lib/burner/pipeline.rb +1 -1
- data/lib/burner/string_template.rb +6 -5
- data/lib/burner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0499f990d92543479718a805654a9e070b3ea3fe9d8bf85aae170c16bdc47e51'
|
4
|
+
data.tar.gz: 4dff77329307b83891fbb92f0a67aabbd4799b8600af14d15aa22c29cfdfc456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42655eba14a6397bc815f8b9e989f8485fb25a0981840ea4c6e69c47b565e487eb1a01c03caa952b4685421130711eea2e07a1cf3a62102e80a49a484be34931
|
7
|
+
data.tar.gz: a1be281d0e8f136ecbed2e3bb577584f1faeb5b9afc85a7fcf6b88601e86baff2f36077742e79ff03f7e4d41dcc2e2e15c150657774ec17dc0111721851352dd
|
data/exe/burner
CHANGED
data/lib/burner.rb
CHANGED
data/lib/burner/cli.rb
CHANGED
@@ -12,8 +12,12 @@ 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
|
+
|
15
17
|
attr_reader :params, :pipeline
|
16
18
|
|
19
|
+
def_delegators :pipeline, :execute
|
20
|
+
|
17
21
|
def initialize(args)
|
18
22
|
path = args.first
|
19
23
|
cli_params = extract_cli_params(args)
|
@@ -22,10 +26,6 @@ module Burner
|
|
22
26
|
@params = (config['params'] || {}).merge(cli_params)
|
23
27
|
end
|
24
28
|
|
25
|
-
def invoke
|
26
|
-
pipeline.execute(params: params)
|
27
|
-
end
|
28
|
-
|
29
29
|
private
|
30
30
|
|
31
31
|
def read_yaml(path)
|
data/lib/burner/pipeline.rb
CHANGED
@@ -35,7 +35,7 @@ module Burner
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# The main entry-point for kicking off a pipeline.
|
38
|
-
def execute(
|
38
|
+
def execute(output: Output.new, params: {}, payload: Payload.new)
|
39
39
|
output.write("Pipeline started with #{steps.length} step(s)")
|
40
40
|
|
41
41
|
output_params(params, output)
|
@@ -9,10 +9,11 @@
|
|
9
9
|
|
10
10
|
module Burner
|
11
11
|
# Can take in a string and an object and use the object for formatting string interpolations
|
12
|
-
# using tokens of form: {attribute_name}.
|
13
|
-
#
|
14
|
-
# is that it can understand almost any type of
|
15
|
-
#
|
12
|
+
# using tokens of form: {attribute_name}. This templating class does not understand nested
|
13
|
+
# structures, so input should be a flat object/hash in the form of key-value pairs. A benefit of
|
14
|
+
# using Objectable for resolution is that it can understand almost any type of
|
15
|
+
# object: Hash, Struct, OpenStruct, custom objects, etc.
|
16
|
+
# For more information see underlying libraries:
|
16
17
|
# * Stringento: https://github.com/bluemarblepayroll/stringento
|
17
18
|
# * Objectable: https://github.com/bluemarblepayroll/objectable
|
18
19
|
class StringTemplate
|
@@ -21,7 +22,7 @@ module Burner
|
|
21
22
|
attr_reader :resolver
|
22
23
|
|
23
24
|
def initialize
|
24
|
-
@resolver = Objectable.resolver
|
25
|
+
@resolver = Objectable.resolver(separator: '')
|
25
26
|
|
26
27
|
freeze
|
27
28
|
end
|
data/lib/burner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: burner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.alpha.
|
4
|
+
version: 1.0.0.pre.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Ruggio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_hashable
|