module Echoe::Platform

Platform check regexes

Public Class Methods

gcc?() click to toggle source
# File lib/echoe/platform.rb, line 10
def self.gcc?
  @gcc ||= RUBY_PLATFORM =~ /mingw/
  !@gcc.nil?
end
java?() click to toggle source
# File lib/echoe/platform.rb, line 20
def self.java?
  @java ||= RUBY_PLATFORM =~ /java/
  !@java.nil?
end
make() click to toggle source
# File lib/echoe/platform.rb, line 34
def self.make
  msvc? ? 'nmake' : 'make'
end
msvc?() click to toggle source
# File lib/echoe/platform.rb, line 15
def self.msvc?
  @msvc ||= RUBY_PLATFORM =~ /mswin/
  !@msvc.nil?
end
rake() click to toggle source
# File lib/echoe/platform.rb, line 30
def self.rake
  windows? ? "rake#{suffix}.bat" : "rake#{suffix}"
end
suffix() click to toggle source
# File lib/echoe/platform.rb, line 25
def self.suffix
  Gem.default_exec_format =~ /%s(.*)/
  @suffix ||= $1
end
windows?() click to toggle source
# File lib/echoe/platform.rb, line 5
def self.windows?
  @windows ||= RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/
  !@windows.nil?
end