lib/beaker/host/unix/exec.rb
def clear_env_var key
    key = key.to_s
    env_file = self[:ssh_env_file]
    #remove entire line
    exec(Beaker::SedCommand.new(self['platform'], "/^#{key}=.*$/d", env_file))
    #update the profile.d to current state
    #match it to the contents of ssh_env_file
    mirror_env_to_profile_d(env_file)
  end
#Delete the environment variable from the current ssh environment
#@param [String] key The key to delete
#@example
#  host.clear_env_var('PATH')
Delete the environment variable from the current ssh environment
Delete the environment variable from the current ssh environment
def clear_env_var key
    key = key.to_s
    env_file = self[:ssh_env_file]
    exec(Beaker::SedCommand.new(self['platform'], "/^#{key}=.*$/d", env_file))
    mirror_env_to_profile_d(env_file)
  end
def clear_env_var key key = key . to_s env_file = self [ :ssh_env_file ] exec ( Beaker :: SedCommand . new ( self [ 'platform' ] , "/^#{key}=.*$/d" , env_file ) ) mirror_env_to_profile_d ( env_file ) end
Delete the environment variable from the current ssh environment
Delete the environment variable from the current ssh environment
#remove entire line #update the profile.d to current state #match it to the contents of ssh_env_file
key
key The key to delete
key The key to delete
example
None