Class: RemoteExecutionProvider

Inherits:
Object
  • Object
show all
Defined in:
app/models/remote_execution_provider.rb

Direct Known Subclasses

SSHExecutionProvider

Class Method Summary collapse

Class Method Details

.humanized_nameObject



23
24
25
# File 'app/models/remote_execution_provider.rb', line 23

def humanized_name
  self.name
end

.provider_for(type) ⇒ Object



3
4
5
# File 'app/models/remote_execution_provider.rb', line 3

def provider_for(type)
  providers[type.to_s] || providers[:SSH]
end

.provider_namesObject



15
16
17
# File 'app/models/remote_execution_provider.rb', line 15

def provider_names
  providers.keys.map(&:to_s)
end

.providersObject



7
8
9
# File 'app/models/remote_execution_provider.rb', line 7

def providers
  @providers ||= { }.with_indifferent_access
end

.proxy_command_options(template_invocation, host) ⇒ Object



19
20
21
# File 'app/models/remote_execution_provider.rb', line 19

def proxy_command_options(template_invocation, host)
  {}
end

.register(key, klass) ⇒ Object



11
12
13
# File 'app/models/remote_execution_provider.rb', line 11

def register(key, klass)
  providers[key.to_sym] = klass
end

.supports_effective_user?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/models/remote_execution_provider.rb', line 27

def supports_effective_user?
  false
end