Class: RemoteExecutionProvider
- Inherits:
-
Object
- Object
- RemoteExecutionProvider
- Defined in:
- app/models/remote_execution_provider.rb
Direct Known Subclasses
Class Method Summary collapse
- .humanized_name ⇒ Object
- .provider_for(type) ⇒ Object
- .provider_names ⇒ Object
- .providers ⇒ Object
- .proxy_command_options(template_invocation, host) ⇒ Object
- .register(key, klass) ⇒ Object
- .supports_effective_user? ⇒ Boolean
Class Method Details
.humanized_name ⇒ Object
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_names ⇒ Object
15 16 17 |
# File 'app/models/remote_execution_provider.rb', line 15 def provider_names providers.keys.map(&:to_s) end |
.providers ⇒ Object
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 (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
27 28 29 |
# File 'app/models/remote_execution_provider.rb', line 27 def supports_effective_user? false end |