Sha256: 896e041e97a0a076aa347ebb1dc85ecffed2d60e25cb337708f52ef985b6e6b0
Contents?: true
Size: 811 Bytes
Versions: 6
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true module Buildkite module Builder class Extension class << self attr_reader :dsl def dsl(&block) @dsl = Module.new(&block) if block_given? @dsl end end attr_reader :context attr_reader :options attr_reader :option_block def initialize(context, **options, &block) @context = context @options = options @option_block = block prepare end def build # Override to provide extra functionality. end private def log context.logger end def prepare # Override to provide extra functionality. end def pipeline(&block) context.dsl.instance_eval(&block) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems