diff options
| author | Jack Nagel | 2013-10-18 12:56:51 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-10-18 12:56:51 -0500 | 
| commit | 1d0a7c66a5afd102a935d6dbafceb6b9768068ac (patch) | |
| tree | bdb28e7d325c4d04a18c2dc59b568732749c9635 /Library/Homebrew/os.rb | |
| parent | 81b0f33b7a7ecb96e9df2606dd5ac1fad21847cf (diff) | |
| download | homebrew-1d0a7c66a5afd102a935d6dbafceb6b9768068ac.tar.bz2 | |
Add OS.mac? and OS.linux?
Diffstat (limited to 'Library/Homebrew/os.rb')
| -rw-r--r-- | Library/Homebrew/os.rb | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb new file mode 100644 index 000000000..e16c81c7d --- /dev/null +++ b/Library/Homebrew/os.rb @@ -0,0 +1,9 @@ +module OS +  def self.mac? +    /darwin/i === RUBY_PLATFORM +  end + +  def self.linux? +    /linux/i === RUBY_PLATFORM +  end +end  | 
