lib/benchmark/driver.rb in benchmark_driver-0.5.1 vs lib/benchmark/driver.rb in benchmark_driver-0.6.0

- old
+ new

@@ -1,9 +1,9 @@ module Benchmark module Driver class << self - # Main function which is used by both RubyDriver and YamlDriver. + # Main function which is used by exe/benchmark-driver. # @param [Benchmark::Driver::Configuration] config def run(config) validate_config(config) runner_class = Runner.find(config.runner_options.type) @@ -49,20 +49,11 @@ ensure $stdout.sync = sync end end end - - # RubyDriver entrypoint. - def self.driver(*args, &block) - dsl = Driver::RubyDslParser.new(*args) - block.call(dsl) - - Driver.run(dsl.configuration) - end end require 'benchmark/output' require 'benchmark/runner' require 'benchmark/driver/error' -require 'benchmark/driver/ruby_dsl_parser' require 'benchmark/driver/version'