Sha256: db91563ae6289f78a57e8eca4184497ad7ddade8fb1157b50fab8c16a6ad95e3
Contents?: true
Size: 787 Bytes
Versions: 10
Compression:
Stored size: 787 Bytes
Contents
# frozen_string_literal: true module Buildkite module Builder class Extension class << self def dsl(&block) @dsl = Module.new(&block) if block_given? @dsl end end attr_reader :context attr_reader :options attr_reader :options_block def initialize(context, **options, &block) @context = context @options = options @options_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
10 entries across 10 versions & 1 rubygems