Sha256: 1e3a6e0862e44e86b3f27377548b46a0f5a678d12151f0d3f1cabf73261d9f26

Contents?: true

Size: 406 Bytes

Versions: 44

Compression:

Stored size: 406 Bytes

Contents

module ForemanRemoteExecution
  module SmartProxyExtensions
    def pubkey
      self[:pubkey] || update_pubkey
    end

    def update_pubkey
      return unless has_feature?('SSH')
      key = ::ProxyAPI::RemoteExecutionSSH.new(:url => url).pubkey
      self.update_attribute(:pubkey, key) if key
      key
    end

    def refresh
      errors = super
      update_pubkey
      errors
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
foreman_remote_execution-2.0.10 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.9 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.8 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-3.0.3 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-3.0.2 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.7 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-3.0.1 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-3.0.0 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.6 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.5 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.4 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.3 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.2 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.1 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-2.0.0 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-1.8.4 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-1.8.3 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-1.8.2 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-1.8.1 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
foreman_remote_execution-1.8.0 app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb