class ForemanRemoteExecutionCore::SuUserMethod

Attributes

effective_user[RW]
ssh_user[RW]

Public Class Methods

new(effective_user, ssh_user) click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 50
def initialize(effective_user, ssh_user)
  @effective_user = effective_user
  @ssh_user = ssh_user
end

Public Instance Methods

cli_command_prefix() click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 65
def cli_command_prefix
  "su - #{effective_user} -c "
end
filter_password?(received_data) click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 57
def filter_password?(received_data)
  false
end
on_data(_, _) click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 55
def on_data(_, _); end
reset() click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 69
def reset; end
sent_all_data?() click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 61
def sent_all_data?
  true
end