Sha256: ba635fce335ade8095eabee8d0ea8246668c375f2c6e847ca73825393c2b7a94

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

module Flak
  # Provide a slightly nicer OS string than the 
  # RUBY_PLATFORM variable
  # @return [String] Either 'linux_64', 'linux_32', 'darwin', or 'win_64'
  def self.os
    case RUBY_PLATFORM 
    when /64-linux/ 
      'linux_64'
    when /i686_linux/
      'linux_32'
    when /darwin/
      'darwin'
    when /i386-cygwin/
      'win_64'
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flak-0.0.7 lib/flak/rake/os.rb
flak-0.0.6 lib/flak/rake/os.rb
flak-0.0.5 lib/flak/rake/os.rb