Sha256: 90f46b2165d03b6b3ee474bf726b7ed3910ef2517d2b5d66e4b33c1cc25cbcc6
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
module Albacore module Support class Platform def self.linux? RUBY_PLATFORM.include?("linux") end def self.quote(string) "\"#{string}\"" end def self.windows_path(path) path.gsub("/", "\\") end def self.linux_path(path) path.gsub("\\", "/") end def self.format_path(path) quote(linux? ? linux_path(path) : windows_path(path)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | lib/albacore/support/platform.rb |
albacore-1.0.0.rc.3 | lib/albacore/support/platform.rb |