module Rudder::DSL
DSL
for configuring and manipulating Concourse Pipelines
The building blocks of the DSL
are:
-
{Rudder::DSL::Pipeline}, the top level definition containg all other definitions. See {concourse-ci.org/pipelines.html Concourse Pipeline}
-
{Rudder::DSL::Resource}, representing inputs and outputs of jobs. See {concourse-ci.org/resources.html Concourse Resource}
-
{Rudder::DSL::Job}, units of work. See {concourse-ci.org/jobs.html Concourse Job}
-
{Rudder::DSL::ResourceType}, defines how a {Rudder::DSL::Resource} operates. See {concourse-ci.org/resource-types.html Concourse
Resource
Type} -
{Rudder::DSL::Group}, logically groups together Concourse Jobs in the UI. See {concourse-ci.org/pipeline-groups.html Concourse Grouping Jobs}
Public Class Methods
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
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
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