Sha256: a6d530c785d471f421b50e7d701660e47c1212d1ede15f734881ad86d9afb149
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require 'shuhari' module Shuhari module Platform module_function def rvm? !`which rvm`.empty? end def unix? osx? or linux? end def osx? os == :osx end def linux? os == :linux end def windows? os == :windows end def os @os ||= case RUBY_PLATFORM when /darwin/ then :osx when /linux/ then :linux when /win32/, /mingw32/ then :windows end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shuhari-0.1.1 | lib/shuhari/platform.rb |