Class: StatsdTestHarness::Processor
- Inherits:
-
Object
- Object
- StatsdTestHarness::Processor
- Defined in:
- lib/statsd_test_harness/processor.rb
Instance Attribute Summary collapse
-
#path_to_config ⇒ Object
readonly
Returns the value of attribute path_to_config.
Instance Method Summary collapse
-
#initialize(path_to_config) ⇒ Processor
constructor
A new instance of Processor.
- #run ⇒ Object
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_config ⇒ Object (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
#run ⇒ Object
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 |