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