Module: R10K::Util::Platform
- Defined in:
- lib/r10k/util/platform.rb
Class Method Summary collapse
Class Method Details
.platform ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/r10k/util/platform.rb', line 6 def self.platform if self.windows? :windows else :posix end end |
.windows? ⇒ Boolean
14 15 16 |
# File 'lib/r10k/util/platform.rb', line 14 def self.windows? RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos|mingw|cygwin/i end |