Class Yapra::Config
In: lib/yapra/config.rb
Parent: Object

Config Examples

Config file for yapra.

Format 1: Pragger like.

A simplest. You can run one pipeline without global config.

   - module: Module:name
     config:
       a: 3
   - module: Module:name2
     config:
       a: b
   - module: Module:name3
     config:
       a: 88

Format 2: Python habu like.

You can run a lot of pipelines with global config.

  global:
    log:
      out: stderr
      level: warn

  pipeline:
    pipeline1:
      - module: Module:name
        config:
          a: 3
      - module: Module:name2
        config:
          a: b

    pipeline2:
      - module: Module:name
        config:
          a: 3
      - module: Module:name2
        config:
          a: b

Format 3: Mixed type.

You can run sigle pipeline with global config.

  global:
    log:
      out: stderr
      level: warn

  pipeline:
    - module: Module:name
      config:
        a: 3
    - module: Module:name2
      config:
        a: b

Methods

create_logger   new  

Attributes

env  [R] 
pipeline_commands  [R] 

Public Class methods

Public Instance methods

[Validate]