Sha256: 69cb1eeaab9c54208a22ad5cb70d20e7c12b0063855e3ceb7f04374e9702c394
Contents?: true
Size: 1.01 KB
Versions: 9
Compression:
Stored size: 1.01 KB
Contents
require 'ffi' require 'aruba/platforms/unix_platform' require 'aruba/platforms/windows_command_string' require 'aruba/platforms/windows_environment_variables' require 'aruba/platforms/windows_which' module Aruba # This abstracts OS-specific things module Platforms # WARNING: # All methods found here are not considered part of the public API of aruba. # # Those methods can be changed at any time in the feature or removed without # any further notice. # # This includes all methods for the Windows platform class WindowsPlatform < UnixPlatform def self.match? FFI::Platform.windows? end # @see UnixPlatform#command_string def command_string WindowsCommandString end # @see UnixPlatform#environment_variables def environment_variables WindowsEnvironmentVariables.new end # @see UnixPlatform#which def which(program, path = ENV['PATH']) WindowsWhich.new.call(program, path) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems