class Buildkite::Pipelines::Steps::Abstract

Attributes

step_collection[R]
template[R]

Public Class Methods

new(step_collection, template_name, **args, &block) click to toggle source
# File lib/buildkite/pipelines/steps/abstract.rb, line 21
def initialize(step_collection, template_name, **args, &block)
  @step_collection = step_collection
  @template = step_collection.templates.find(template_name)
  @context = StepContext.new(self, **args)

  instance_exec(@context, &template) if template
  instance_exec(@context, &block) if block_given?
end
to_sym() click to toggle source
# File lib/buildkite/pipelines/steps/abstract.rb, line 17
def self.to_sym
  name.split('::').last.downcase.to_sym
end