Module: Purple::Platform
- Defined in:
- lib/purple/platform.rb
Class Method Summary collapse
Class Method Details
.detect ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/purple/platform.rb', line 4 def self.detect case true when FileTest.exist?('/etc/debian_version') system_brand = :debian when (FileTest.directory?('/System/Library/') and FileTest.file?('/mach_kernel')) system_brand = :osx end require "purple/#{system_brand}" end |