module Rudder::DSL

DSL for configuring and manipulating Concourse Pipelines

The building blocks of the DSL are:

Public Class Methods

eval_from_file(path, vars: {}) click to toggle source

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

@param path [String] to the {Rudder::DSL::Pipeline} definition @param vars optional [Hash<(Symbol, String), Any>] of Concourse variables @return [Rudder::DSL::Pipeline] from path, fully evaluated

# 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: {}) click to toggle source

Load a pipeline from a definition file at the path

@param path [String] to the {Rudder::DSL::Pipeline} definition @param vars optional [Hash<(Symbol, String), Any>] of Concourse variables @return [Rudder::DSL::Pipeline] from path, unevaluated

# File lib/rudder/dsl.rb, line 40
def self.from_file(path, vars: {})
  Rudder::DSL::Pipeline.new path, vars: vars
end
pipeline(*args, **kwargs) click to toggle source

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

@return [Rudder::DSL::Pipeline] new, and unevaluated

# File lib/rudder/dsl.rb, line 28
def self.pipeline(*args, **kwargs)
  Rudder::DSL::Pipeline.new(*args, **kwargs)
end