Class: StatsdTestHarness::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/statsd_test_harness/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path_to_config) ⇒ Processor

Returns a new instance of Processor.



9
10
11
# File 'lib/statsd_test_harness/processor.rb', line 9

def initialize(path_to_config)
  @path_to_config = path_to_config
end

Instance Attribute Details

#path_to_configObject (readonly)

Returns the value of attribute path_to_config.



7
8
9
# File 'lib/statsd_test_harness/processor.rb', line 7

def path_to_config
  @path_to_config
end

Instance Method Details

#runObject



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/statsd_test_harness/processor.rb', line 13

def run
  load_external_config
  StatsdTestHarness.config.tools.each do |tool_harness|
    tool = Tool.new(tool_harness)
    puts "Executing #{tool.label} test suite..."
    if data = tool.run
      post_to_statsd(data, tool.label)
    end
    puts "Test suite run complete."
  end
end