class PSWindows::Host
Attributes
scp_separator[R]
attr_reader :network_separator, :external_copy_base, :system_temp_path
system_temp_path[R]
attr_reader :network_separator, :external_copy_base, :system_temp_path
Public Class Methods
new(name, host_hash, options)
click to toggle source
Calls superclass method
Windows::Host::new
# File lib/beaker/host/pswindows.rb, line 27 def initialize name, host_hash, options super @scp_separator = '/' # %TEMP% == C:\Users\ADMINI~1\AppData\Local\Temp # is a user temp path, not the system path. Also, it doesn't work, there's # probably an issue with the `ADMINI~1` section @system_temp_path = 'C:\\Windows\\Temp' @external_copy_base = nil # @external_copy_base = '/programdata' end
Public Instance Methods
external_copy_base()
click to toggle source
# File lib/beaker/host/pswindows.rb, line 17 def external_copy_base return @external_copy_base if @external_copy_base @external_copy_base = execute('for %I in (%ALLUSERSPROFILE%) do @echo %~I') @external_copy_base end