Method: Benchmark::Driver::Configuration::Executable.parse_rbenv
- Defined in:
- lib/benchmark/driver/configuration.rb
.parse_rbenv(spec) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/benchmark/driver/configuration.rb', line 31 def self.parse_rbenv(spec) version, *args = spec.split(',') path = `RBENV_VERSION='#{version}' rbenv which ruby`.rstrip abort "Failed to execute 'rbenv which ruby'" unless $?.success? Benchmark::Driver::Configuration::Executable.new(version, [path, *args]) end |