Sha256: ab12a70416f467ef775b235d5bc01e0e5db37f5bfeb0e5e332c0796f4f1eeae3

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

module Rerun
  module System

    def mac?
      RUBY_PLATFORM =~ /darwin/i
    end

    def windows?
       RUBY_PLATFORM =~ /mswin/i
    end

    def linux?
       RUBY_PLATFORM =~ /linux/i
    end

    def rails?
      rails_sig_file = File.expand_path(".")+"/config/boot.rb"
      File.exists? rails_sig_file
    end

  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
poll-rerun-0.11.2 lib/rerun/system.rb
poll-rerun-0.11.1 lib/rerun/system.rb
rerun-0.11.0 lib/rerun/system.rb