Module: RubybenchRunner

Defined in:
lib/rubybench_runner.rb,
lib/rubybench_runner/version.rb,
lib/rubybench_runner/base_runner.rb,
lib/rubybench_runner/rails_runner.rb,
lib/rubybench_runner/configurations.rb,
lib/rubybench_runner/dependencies_checker.rb

Defined Under Namespace

Classes: BaseRunner, Configurations, DependenciesChecker, RailsRunner, ShellError

Constant Summary collapse

SUPPORTED_REPOS =
{
  rails: RailsRunner
}
VERSION =
'0.1.4'
CURRENT_PG_VERSION =

TODO: ideally those should be fetched from rubybench.org API

"9.6"
CURRENT_MYSQL_VERSION =
"5.6.24"

Class Method Summary collapse

Class Method Details

.run(repo, script, opts = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/rubybench_runner/base_runner.rb', line 4

def self.run(repo, script, opts = {})
  SUPPORTED_REPOS.each do |name, klass|
    if repo == name.to_s
      klass.new(script, opts).run
      return
    end
  end
  raise "Unknown repo #{repo}"
end