Class: Pipelines::Configuration

Inherits:
Object
  • Object
show all
Defined in:
app/pipelines/pipelines/configuration.rb

Overview

Configuration - build the pipelines configuration

Defined Under Namespace

Classes: Item

Instance Method Summary collapse

Constructor Details

#initialize(pipelines) ⇒ Configuration

builds a configuration object

Parameters:

  • pipelines (Hash)

    list of all the pipelines with their respective configuration



8
9
10
11
12
13
# File 'app/pipelines/pipelines/configuration.rb', line 8

def initialize(pipelines)
  pipelines.with_indifferent_access.each do |key, pipeline|
    define_singleton_method(key) { Item.new(key, pipeline) }
    self.pipelines << key
  end
end

Instance Method Details

#pipelinesArray

Returns list of configuration items for each pipeline.

Returns:

  • (Array)

    list of configuration items for each pipeline



16
17
18
# File 'app/pipelines/pipelines/configuration.rb', line 16

def pipelines
  @pipelines ||= []
end