Class: Buildkite::Builder::Extension

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/builder/extension.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, **options, &block) ⇒ Extension

Returns a new instance of Extension.



17
18
19
20
21
22
23
# File 'lib/buildkite/builder/extension.rb', line 17

def initialize(context, **options, &block)
  @context = context
  @options = options
  @options_block = block

  prepare
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



13
14
15
# File 'lib/buildkite/builder/extension.rb', line 13

def context
  @context
end

#optionsObject (readonly)

Returns the value of attribute options.



14
15
16
# File 'lib/buildkite/builder/extension.rb', line 14

def options
  @options
end

#options_blockObject (readonly)

Returns the value of attribute options_block.



15
16
17
# File 'lib/buildkite/builder/extension.rb', line 15

def options_block
  @options_block
end

Class Method Details

.dsl(&block) ⇒ Object



7
8
9
10
# File 'lib/buildkite/builder/extension.rb', line 7

def dsl(&block)
  @dsl = Module.new(&block) if block_given?
  @dsl
end

Instance Method Details

#buildObject



25
26
27
# File 'lib/buildkite/builder/extension.rb', line 25

def build
  # Override to provide extra functionality.
end