buildkite-builder 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/buildkite/pipelines/steps/abstract.rb +8 -3
- 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: 669f98cc6170037177ae0c80008c0a39909cf9467d333eab77c81d97bb26d94d
|
4
|
+
data.tar.gz: 2574e9e06b8140029edde690bd588f1171417810056f53fcc57225a061c8cbed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64284b828cd1af1768b1354af0bddf2505c203124797117d74af8fce6d59e9342dc4668dc84a462d4569da00a6628006f773cda753c90782ff718a712c9d1413
|
7
|
+
data.tar.gz: d97d496f48f63060aa769d07952c648f4ed31303c070164b8e8754ce761bba9475f60b2bcf1bc7bdd1b96e7e008658a4823f0dda56b976974b20060a8ae6249e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.1
|
@@ -1,11 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "forwardable"
|
4
|
+
|
3
5
|
module Buildkite
|
4
6
|
module Pipelines
|
5
7
|
module Steps
|
6
8
|
class Abstract
|
9
|
+
extend Forwardable
|
7
10
|
include Attributes
|
8
11
|
|
12
|
+
def_delegator :@context, :data
|
13
|
+
|
9
14
|
attr_reader :pipeline
|
10
15
|
attr_reader :template
|
11
16
|
|
@@ -16,10 +21,10 @@ module Buildkite
|
|
16
21
|
def initialize(pipeline, template = nil, **args, &block)
|
17
22
|
@pipeline = pipeline
|
18
23
|
@template = template
|
19
|
-
context = StepContext.new(self, **args)
|
24
|
+
@context = StepContext.new(self, **args)
|
20
25
|
|
21
|
-
instance_exec(context, &template) if template
|
22
|
-
instance_exec(context, &block) if block_given?
|
26
|
+
instance_exec(@context, &template) if template
|
27
|
+
instance_exec(@context, &block) if block_given?
|
23
28
|
end
|
24
29
|
end
|
25
30
|
end
|