Method: Aruba::Platforms::UnixPlatform#detect_ruby

Defined in:
lib/aruba/platforms/unix_platform.rb

#detect_ruby(cmd) ⇒ Object


86
87
88
89
90
91
92
# File 'lib/aruba/platforms/unix_platform.rb', line 86

def detect_ruby(cmd)
  if /^ruby\s/.match?(cmd)
    cmd.gsub(/^ruby\s/, "#{current_ruby} ")
  else
    cmd
  end
end