Class: BenchmarkDriver::Runner::RubyStdout
- Inherits:
-
Object
- Object
- BenchmarkDriver::Runner::RubyStdout
- Defined in:
- lib/benchmark_driver/runner/ruby_stdout.rb
Overview
Use stdout of ruby command
Defined Under Namespace
Classes: JobParser=Module.new
Constant Summary collapse
- CommandFailure =
Class.new(StandardError)
- Job =
JobParser returns this, ‘BenchmarkDriver::Runner.runner_for` searches “*::Job”
::BenchmarkDriver::Struct.new( :name, # @param [String] name - This is mandatory for all runner :metrics, # @param [Array<BenchmarkDriver::Metric>] :command, # @param [Array<String>] :working_directory, # @param [String,NilClass] :value_from_stdout, # @param [String] :environment_from_stdout # @param [Hash{ String => String }] )
Instance Method Summary collapse
-
#initialize(config:, output:, contexts:) ⇒ RubyStdout
constructor
A new instance of RubyStdout.
-
#run(jobs) ⇒ Object
This method is dynamically called by ‘BenchmarkDriver::JobRunner.run`.
Constructor Details
#initialize(config:, output:, contexts:) ⇒ RubyStdout
Returns a new instance of RubyStdout.
71 72 73 74 75 |
# File 'lib/benchmark_driver/runner/ruby_stdout.rb', line 71 def initialize(config:, output:, contexts:) @config = config @output = output @contexts = contexts end |
Instance Method Details
#run(jobs) ⇒ Object
This method is dynamically called by ‘BenchmarkDriver::JobRunner.run`
79 80 81 82 83 84 85 |
# File 'lib/benchmark_driver/runner/ruby_stdout.rb', line 79 def run(jobs) if @config.alternate alternated_run(jobs) else incremental_run(jobs) end end |