Class: SSHExecutionProvider
Constant Summary
RemoteExecutionProvider::EFFECTIVE_USER_METHODS
Class Method Summary
collapse
cleanup_working_dirs?, effective_interfaces, effective_user, effective_user_method, find_ip_or_hostname, host_setting, provider_for, provider_names, providers, register, sudo_password
Class Method Details
.humanized_name ⇒ Object
12
13
14
|
# File 'app/models/ssh_execution_provider.rb', line 12
def humanized_name
_('SSH')
end
|
.proxy_command_options(template_invocation, host) ⇒ Object
3
4
5
6
7
8
9
10
|
# File 'app/models/ssh_execution_provider.rb', line 3
def proxy_command_options(template_invocation, host)
super.merge(:ssh_user => ssh_user(host),
:effective_user => effective_user(template_invocation),
:effective_user_method => effective_user_method(host),
:cleanup_working_dirs => cleanup_working_dirs?(host),
:sudo_password => sudo_password(host),
:ssh_port => ssh_port(host))
end
|
.ssh_key_passphrase(host) ⇒ Object
24
25
26
|
# File 'app/models/ssh_execution_provider.rb', line 24
def ssh_key_passphrase(host)
host_setting(host, :remote_execution_ssh_key_passphrase)
end
|
.ssh_password(host) ⇒ Object
20
21
22
|
# File 'app/models/ssh_execution_provider.rb', line 20
def ssh_password(host)
host_setting(host, :remote_execution_ssh_password)
end
|
.supports_effective_user? ⇒ Boolean
16
17
18
|
# File 'app/models/ssh_execution_provider.rb', line 16
def supports_effective_user?
true
end
|