Sha256: 4abc32e94b7c183871da6f8ce92f3b2f93aa82db29319a7410b6668aeb0293d9

Contents?: true

Size: 310 Bytes

Versions: 14

Compression:

Stored size: 310 Bytes

Contents

require 'rbconfig'

module R10K
  module Util
    module Platform
      def self.platform
        if self.windows?
          :windows
        else
          :posix
        end
      end

      def self.windows?
        RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos|mingw|cygwin/i
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
r10k-1.4.2 lib/r10k/util/platform.rb
r10k-1.4.1 lib/r10k/util/platform.rb
r10k-1.4.0 lib/r10k/util/platform.rb
r10k-1.3.5 lib/r10k/util/platform.rb
r10k-1.3.4 lib/r10k/util/platform.rb
r10k-1.2.4 lib/r10k/util/platform.rb
r10k-1.3.3 lib/r10k/util/platform.rb
r10k-1.3.2 lib/r10k/util/platform.rb
r10k-1.2.3 lib/r10k/util/platform.rb
r10k-1.3.1 lib/r10k/util/platform.rb
r10k-1.2.2 lib/r10k/util/platform.rb
r10k-1.3.0 lib/r10k/util/platform.rb
r10k-1.3.0rc1 lib/r10k/util/platform.rb
r10k-1.2.1 lib/r10k/util/platform.rb