# File lib/ohai/plugins/ruby.rb, line 24 def run_ruby(command) rb_exe = File.join(::RbConfig::CONFIG['bindir'], ::RbConfig::CONFIG['ruby_install_name']) cmd = "#{rb_exe} -e \"require 'rbconfig'; #{command}\"" status, stdout, stderr = run_command(:no_status_check => true, :command => cmd) stdout.strip end