Sha256: 4df670337c2879b6aab40d59a5809080f5747b021dcdcf79ef0dc0e526da95dc
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 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 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.0 | lib/shuhari/platform.rb |