Class: Proxy::RemoteExecution::Ssh::Runners::SudoUserMethod
- Inherits:
-
EffectiveUserMethod
- Object
- EffectiveUserMethod
- Proxy::RemoteExecution::Ssh::Runners::SudoUserMethod
- Defined in:
- lib/smart_proxy_remote_execution_ssh/runners/script_runner.rb
Constant Summary collapse
- LOGIN_PROMPT =
'rex login: '.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 Proxy::RemoteExecution::Ssh::Runners::EffectiveUserMethod
Instance Method Details
#cli_command_prefix ⇒ Object
48 49 50 |
# File 'lib/smart_proxy_remote_execution_ssh/runners/script_runner.rb', line 48 def cli_command_prefix "sudo -p '#{LOGIN_PROMPT}' -u #{effective_user} " end |
#login_prompt ⇒ Object
44 45 46 |
# File 'lib/smart_proxy_remote_execution_ssh/runners/script_runner.rb', line 44 def login_prompt LOGIN_PROMPT end |