Method: PSWindows::Exec#ssh_set_user_environment

Defined in:
lib/beaker/host/pswindows/exec.rb

#ssh_set_user_environment(env) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Note:

this class doesn’t manipulate an SSH environment file, it just sets

Sets the user SSH environment.

the environment variables on the system.

Parameters:

  • env (Hash{String=>String})

    Environment variables to set on the system, in the form of a hash of String variable names to their corresponding String values.

Returns:

  • nil



189
190
191
192
193
194
# File 'lib/beaker/host/pswindows/exec.rb', line 189

def ssh_set_user_environment(env)
  #add the env var set to this test host
  env.each_pair do |var, value|
    add_env_var(var, value)
  end
end