Module: Fluent::WatchProcessInput::OS
- Defined in:
- lib/fluent/plugin/in_watch_process.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
114 115 116 |
# File 'lib/fluent/plugin/in_watch_process.rb', line 114 def OS.linux? OS.unix? and not OS.mac? end |
.mac? ⇒ Boolean
106 107 108 |
# File 'lib/fluent/plugin/in_watch_process.rb', line 106 def OS.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.unix? ⇒ Boolean
110 111 112 |
# File 'lib/fluent/plugin/in_watch_process.rb', line 110 def OS.unix? !OS.windows? end |
.windows? ⇒ Boolean
102 103 104 |
# File 'lib/fluent/plugin/in_watch_process.rb', line 102 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |