Class: SSHExecutionProvider

Inherits:
RemoteExecutionProvider show all
Defined in:
app/models/ssh_execution_provider.rb

Constant Summary

Constants inherited from RemoteExecutionProvider

RemoteExecutionProvider::EFFECTIVE_USER_METHODS

Class Method Summary collapse

Methods inherited from RemoteExecutionProvider

effective_interfaces, effective_user, effective_user_method, find_ip_or_hostname, host_setting, provider_for, provider_names, providers, register

Class Method Details

.humanized_nameObject



10
11
12
# File 'app/models/ssh_execution_provider.rb', line 10

def humanized_name
  _('SSH')
end

.proxy_command_options(template_invocation, host) ⇒ Object



3
4
5
6
7
8
# 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),
              :ssh_port => ssh_port(host))
end

.supports_effective_user?Boolean

Returns:



14
15
16
# File 'app/models/ssh_execution_provider.rb', line 14

def supports_effective_user?
  true
end