module RainforestRubyRuntime

Constants

VERSION

Public Class Methods

platform() click to toggle source
# File lib/rainforest_ruby_runtime.rb, line 22
def self.platform
  case RUBY_PLATFORM
  when /cygwin|mswin|mingw|bccwin|wince|emx/ then :windows
  when /darwin/ then :osx
  else :linux
  end
end
root() click to toggle source
# File lib/rainforest_ruby_runtime.rb, line 30
def self.root
  File.dirname(__dir__)
end
sc_executable_path() click to toggle source
# File lib/rainforest_ruby_runtime.rb, line 34
def self.sc_executable_path
  if platform == :windows
    'vendor/sauce/sc.exe'
  else
    'vendor/sauce/sc'
  end
end