Class: Pipelines::Configuration
- Inherits:
-
Object
- Object
- Pipelines::Configuration
- Defined in:
- app/pipelines/pipelines/configuration.rb
Overview
Configuration - build the pipelines configuration
Defined Under Namespace
Classes: Item
Instance Method Summary collapse
-
#initialize(pipelines) ⇒ Configuration
constructor
builds a configuration object.
-
#pipelines ⇒ Array
List of configuration items for each pipeline.
Constructor Details
#initialize(pipelines) ⇒ Configuration
builds a configuration object
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
#pipelines ⇒ Array
Returns list of configuration items for each pipeline.
16 17 18 |
# File 'app/pipelines/pipelines/configuration.rb', line 16 def pipelines @pipelines ||= [] end |