Module: Rudder::DSL

Defined in:
lib/rudder/dsl.rb,
lib/rudder/dsl/job.rb,
lib/rudder/dsl/util.rb,
lib/rudder/dsl/group.rb,
lib/rudder/dsl/pipeline.rb,
lib/rudder/dsl/resource.rb,
lib/rudder/dsl/component.rb,
lib/rudder/dsl/resource_type.rb

Overview

DSL for configuring and manipulating Concourse Pipelines

The building blocks of the DSL are:

Defined Under Namespace

Modules: Util Classes: Component, Group, Job, Pipeline, Resource, ResourceType

Class Method Summary collapse

Class Method Details

.eval_from_file(path, vars: {}) ⇒ Rudder::DSL::Pipeline

Load and evaluate a pipeline from a definition file at the path

Parameters:

  • path (String)

    to the Pipeline definition

  • vars

    optional [Hash<(Symbol, String), Any>] of Concourse variables

Returns:



52
53
54
# File 'lib/rudder/dsl.rb', line 52

def self.eval_from_file(path, vars: {})
  Rudder::DSL::Pipeline.new(path, vars: vars).eval
end

.from_file(path, vars: {}) ⇒ Rudder::DSL::Pipeline

Load a pipeline from a definition file at the path

Parameters:

  • path (String)

    to the Pipeline definition

  • vars

    optional [Hash<(Symbol, String), Any>] of Concourse variables

Returns:



40
41
42
# File 'lib/rudder/dsl.rb', line 40

def self.from_file(path, vars: {})
  Rudder::DSL::Pipeline.new path, vars: vars
end

.pipeline(*args, **kwargs) ⇒ Rudder::DSL::Pipeline

Entry to the DSL. Creates a new pipeline instance to evaluate user defined pipelines

Returns:



28
29
30
# File 'lib/rudder/dsl.rb', line 28

def self.pipeline(*args, **kwargs)
  Rudder::DSL::Pipeline.new(*args, **kwargs)
end