Class: Buildkite::Builder::Extension
- Inherits:
-
Object
- Object
- Buildkite::Builder::Extension
- Defined in:
- lib/buildkite/builder/extension.rb
Direct Known Subclasses
Buildkite::Builder::Extensions::Agents, Buildkite::Builder::Extensions::Env, Buildkite::Builder::Extensions::Lib, Buildkite::Builder::Extensions::Notify, Buildkite::Builder::Extensions::Plugins, Buildkite::Builder::Extensions::Steps, Buildkite::Builder::Extensions::Use
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#options_block ⇒ Object
readonly
Returns the value of attribute options_block.
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(context, **options, &block) ⇒ Extension
constructor
A new instance of Extension.
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, **, &block) @context = context @options = @options_block = block prepare end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
13 14 15 |
# File 'lib/buildkite/builder/extension.rb', line 13 def context @context end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/buildkite/builder/extension.rb', line 14 def @options end |
#options_block ⇒ Object (readonly)
Returns the value of attribute options_block.
15 16 17 |
# File 'lib/buildkite/builder/extension.rb', line 15 def @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
#build ⇒ Object
25 26 27 |
# File 'lib/buildkite/builder/extension.rb', line 25 def build # Override to provide extra functionality. end |