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 66 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 81 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 73 def filter_password?(received_data) false end
on_data(_, _)
click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 71 def on_data(_, _); end
reset()
click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 85 def reset; end
sent_all_data?()
click to toggle source
# File lib/foreman_remote_execution_core/script_runner.rb, line 77 def sent_all_data? true end