Sha256: 9cbb58a3241aac44a6be69a097e11d3e10c15d7fd47c02931e54857fcb6f78e2

Contents?: true

Size: 951 Bytes

Versions: 13

Compression:

Stored size: 951 Bytes

Contents

RFlow::Configuration::RubyDSL.configure do |config|
  # Configure the settings, which include paths for various files, log
  # levels, and component specific stuffs
  config.setting('rflow.log_level', 'DEBUG')
  config.setting('rflow.application_directory_path', '.')

  # Instantiate components
  config.component 'generate_ints', 'RFlow::Components::GenerateIntegerSequence', 'start' => 20, 'finish' => 30
  config.component 'output', 'RFlow::Components::FileOutput', 'output_file_path' => '/tmp/crap'
  config.component 'output_even', 'RFlow::Components::FileOutput', 'output_file_path' => '/tmp/crap_even'
  config.component 'output_odd', 'RFlow::Components::FileOutput', 'output_file_path' => '/tmp/crap_odd'

  # Hook components together
  config.connect 'generate_ints#even_odd_out' => 'output#in'
  config.connect 'generate_ints#even_odd_out[even]' => 'output_even#in'
  config.connect 'generate_ints#even_odd_out[odd]' => 'output_odd#in'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rflow-1.3.2 example/basic_config.rb
rflow-1.3.1 example/basic_config.rb
rflow-1.3.0 example/basic_config.rb
rflow-1.3.0a1 example/basic_config.rb
rflow-1.2.0 example/basic_config.rb
rflow-1.1.0 example/basic_config.rb
rflow-1.0.1 example/basic_config.rb
rflow-1.0.0 example/basic_config.rb
rflow-1.0.0a6 example/basic_config.rb
rflow-1.0.0a5 example/basic_config.rb
rflow-1.0.0a4 example/basic_config.rb
rflow-1.0.0a3 example/basic_config.rb
rflow-1.0.0a2 example/basic_config.rb