Class: ForemanRemoteExecutionCore::SuUserMethod
- Inherits:
-
EffectiveUserMethod
- Object
- EffectiveUserMethod
- ForemanRemoteExecutionCore::SuUserMethod
- Defined in:
- lib/foreman_remote_execution_core/script_runner.rb
Constant Summary collapse
- LOGIN_PROMPT =
/Password: /i.freeze
Instance Attribute Summary
Attributes inherited from EffectiveUserMethod
#effective_user, #effective_user_password, #password_sent, #ssh_user
Instance Method Summary collapse
Methods inherited from EffectiveUserMethod
#filter_password?, #initialize, #on_data, #reset, #sent_all_data?
Constructor Details
This class inherits a constructor from ForemanRemoteExecutionCore::EffectiveUserMethod
Instance Method Details
#cli_command_prefix ⇒ Object
78 79 80 |
# File 'lib/foreman_remote_execution_core/script_runner.rb', line 78 def cli_command_prefix "su - #{effective_user} -c " end |
#login_prompt ⇒ Object
74 75 76 |
# File 'lib/foreman_remote_execution_core/script_runner.rb', line 74 def login_prompt LOGIN_PROMPT end |