Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#host_os ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'ext/vmnet/extconf.rb', line 5 def host_os os = RbConfig::CONFIG['host_os'] case when os.downcase.include?('linux') 'linux' when os.downcase.include?('darwin') 'darwin' else puts 'You are not on a supported platform. exiting...' puts 'Mac OS X and Linux are the only supported platforms.' exit end end |