module Rerun::System

Public Instance Methods

linux?() click to toggle source
# File lib/rerun/system.rb, line 12
def linux?
   RUBY_PLATFORM =~ /linux/i
end
mac?() click to toggle source
# File lib/rerun/system.rb, line 4
def mac?
  RUBY_PLATFORM =~ /darwin/i
end
rails?() click to toggle source
# File lib/rerun/system.rb, line 16
def rails?
  rails_sig_file = File.expand_path(".")+"/config/boot.rb"
  File.exists? rails_sig_file
end
windows?() click to toggle source
# File lib/rerun/system.rb, line 8
def windows?
   RUBY_PLATFORM =~ /mswin/i
end