Sha256: 1f9fe70757027fe8da65e1957a8abf82547069e766450754484ab7a979d730d9
Contents?: true
Size: 834 Bytes
Versions: 8
Compression:
Stored size: 834 Bytes
Contents
module Vagrant module Util # This class just contains some platform checking code. class Platform class << self def leopard? RUBY_PLATFORM.downcase.include?("darwin9") end [:darwin, :bsd, :linux].each do |type| define_method("#{type}?") do platform.include?(type.to_s) end end def windows? %W[mingw mswin].each do |text| return true if platform.include?(text) end false end def tar_file_options # create, write only, fail if the file exists, binary if windows File::WRONLY|File::EXCL|File::CREAT|(Mario::Platform.windows? ? File::BINARY : 0) end def platform RUBY_PLATFORM.to_s.downcase end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems