Class: Aruba::Platforms::WindowsPlatform

Inherits:
UnixPlatform show all
Defined in:
lib/aruba/platforms/windows_platform.rb

Overview

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 Method Summary collapse

Instance Method Summary collapse

Methods inherited from UnixPlatform

#absolute_path?, #announcer, #chdir, #chmod, #command?, #command_monitor, #cp, #create_file, #create_fixed_size_file, #current_ruby, #default_shell, #deprecated, #detect_ruby, #determine_disk_usage, #determine_file_size, #directory?, #executable?, #exist?, #expand_path, #file?, #filesystem_status, #getwd, #logger, #mkdir, #mv, #relative_command?, #relative_path?, #require_matching_files, #rm, #simple_table, #touch, #with_replaced_environment, #write_file

Class Method Details

.match?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/aruba/platforms/windows_platform.rb', line 22

def self.match?
  Gem.win_platform?
end

Instance Method Details

#builtin_shell_commandsObject



41
42
43
# File 'lib/aruba/platforms/windows_platform.rb', line 41

def builtin_shell_commands
  %w[cd dir echo exit set type]
end

#command_stringObject



27
28
29
# File 'lib/aruba/platforms/windows_platform.rb', line 27

def command_string
  WindowsCommandString
end

#environment_variablesObject



32
33
34
# File 'lib/aruba/platforms/windows_platform.rb', line 32

def environment_variables
  WindowsEnvironmentVariables
end

#term_signal_supported?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/aruba/platforms/windows_platform.rb', line 45

def term_signal_supported?
  false
end

#which(program, path = ENV['PATH']) ⇒ Object

See Also:



37
38
39
# File 'lib/aruba/platforms/windows_platform.rb', line 37

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