Sha256: 812d8e29be5dedc9ce1b6f8754a7b6aeaf0a982fbe478e4dcd1168e1aaa0490e

Contents?: true

Size: 529 Bytes

Versions: 22

Compression:

Stored size: 529 Bytes

Contents

class RemoteExecutionProvider
  class << self
    def provider_for(type)
      providers[type.to_s] || providers[:SSH]
    end

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

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

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

    def proxy_command_options(template_invocation, host)
      {}
    end

    def humanized_name
      self.name
    end

    def supports_effective_user?
      false
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_remote_execution-1.4.2 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.7 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.6 app/models/remote_execution_provider.rb
foreman_remote_execution-1.4.1 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.5 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.4 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.3 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.2 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.1 app/models/remote_execution_provider.rb
foreman_remote_execution-1.3.0 app/models/remote_execution_provider.rb
foreman_remote_execution-1.2.2 app/models/remote_execution_provider.rb
foreman_remote_execution-1.2.1 app/models/remote_execution_provider.rb
foreman_remote_execution-1.2.0 app/models/remote_execution_provider.rb
foreman_remote_execution-1.1.1 app/models/remote_execution_provider.rb
foreman_remote_execution-1.1.0 app/models/remote_execution_provider.rb
foreman_remote_execution-1.0.0 app/models/remote_execution_provider.rb
foreman_remote_execution-0.3.2 app/models/remote_execution_provider.rb
foreman_remote_execution-0.3.1 app/models/remote_execution_provider.rb
foreman_remote_execution-0.3.0 app/models/remote_execution_provider.rb
foreman_remote_execution-0.2.3 app/models/remote_execution_provider.rb