BuildSourceBuildControllerBuilder

class Builder

A builder class for constructing the controller.

Definitions

def initialize

Initialize the builder with an empty list of nodes.

Implementation

def initialize
	@nodes = []
end

attr :nodes

Signature

attribute Array(Graph::Node)

The list of nodes to build.

def add_chain(chain, arguments = [], environment)

Add a build environment to the controller.

Implementation

def add_chain(chain, arguments = [], environment)
	@nodes << ChainNode.new(chain, arguments, environment)
end