Module: BenchmarkDriver::Rbenv

Defined in:
lib/benchmark_driver/rbenv.rb

Class Method Summary collapse

Class Method Details

.ruby_path(version) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/benchmark_driver/rbenv.rb', line 3

def self.ruby_path(version)
  path = `RBENV_VERSION='#{version}' rbenv which ruby`.rstrip
  unless $?.success?
    abort "Failed to execute 'rbenv which ruby'"
  end
  path
end