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
8 9 10 11 |
# File 'lib/statsd_test_harness/processor.rb', line 8 def initialize(path_to_config) @path_to_config = path_to_config load_config end |
Instance Attribute Details
#path_to_config ⇒ Object (readonly)
Returns the value of attribute path_to_config.
6 7 8 |
# File 'lib/statsd_test_harness/processor.rb', line 6 def path_to_config @path_to_config end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/statsd_test_harness/processor.rb', line 13 def run StatsdTestHarness.config.tools.each do |tool_harness| tool = Tool.new(tool_harness) puts "Executing #{tool.name} test suite for #{StatsdTestHarness.config.app_name}..." duration = with_timing{tool.run} StatsdTestHarness::Client.new.post(duration, tool.name) puts "Test suite for #{tool.name} completed in #{duration} ms." end end |