module Rudder

Methods to compile Rudder definitions to Concourse Pipeline definitions

Constants

VERSION

Public Class Methods

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

Compiles a {Rudder::DSL::Pipeline} definition from path to a {Hash}

@param path [String] the path to the Rudder definition @param vars optional [Hash<(Symbol, String), Any>] of Concourse variables @return [Hash] Concourse YAML friendly hash

# File lib/rudder.rb, line 21
def self.compile(path, vars: {})
  Rudder::DSL.eval_from_file(path, vars: vars).to_h
end
dump(pipeline, output) click to toggle source

Dumps a {Rudder::DSL::Pipeline} or Pipeline {Hash} to the provided file handle output

@param pipeline {Rudder::DSL::Pipeline} definition. Assumed to be evaluated. @param output [File] handle to dump YAML to @return [nil]

# File lib/rudder.rb, line 33
def self.dump(pipeline, output)
  output.puts(YAML.dump(pipeline.to_h))
end