Sha256: 9a4d0a2de8835970d99e6eaffc7fa55117ab8649bb70131da927a2223a244d4f

Contents?: true

Size: 1.04 KB

Versions: 23

Compression:

Stored size: 1.04 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'

# Aruba
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
    #
    # @private
    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
      end

      # @see UnixPlatform#which
      def which(program, path = ENV['PATH'])
        WindowsWhich.new.call(program, path)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
aruba-0.14.14 lib/aruba/platforms/windows_platform.rb
aruba-0.14.13 lib/aruba/platforms/windows_platform.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/platforms/windows_platform.rb
aruba-0.14.12 lib/aruba/platforms/windows_platform.rb
aruba-0.14.11 lib/aruba/platforms/windows_platform.rb
aruba-0.14.10 lib/aruba/platforms/windows_platform.rb
aruba-1.0.0.pre.alpha.4 lib/aruba/platforms/windows_platform.rb
aruba-1.0.0.pre.alpha.3 lib/aruba/platforms/windows_platform.rb
aruba-0.14.9 lib/aruba/platforms/windows_platform.rb
aruba-0.14.8 lib/aruba/platforms/windows_platform.rb
aruba-0.14.7 lib/aruba/platforms/windows_platform.rb
aruba-0.14.6 lib/aruba/platforms/windows_platform.rb
aruba-0.14.5 lib/aruba/platforms/windows_platform.rb
aruba-0.14.4 lib/aruba/platforms/windows_platform.rb
aruba-0.14.3 lib/aruba/platforms/windows_platform.rb
aruba-1.0.0.pre.alpha.2 lib/aruba/platforms/windows_platform.rb
aruba-1.0.0.pre.alpha.1 lib/aruba/platforms/windows_platform.rb
aruba-win-fix-0.14.2 lib/aruba/platforms/windows_platform.rb
aruba-0.14.2 lib/aruba/platforms/windows_platform.rb
aruba-0.14.1 lib/aruba/platforms/windows_platform.rb