Sha256: 5bfb1072fc26d2383070043b9d8d72c8d91e0581b868da968da9f95f383ae3d5
Contents?: true
Size: 568 Bytes
Versions: 19
Compression:
Stored size: 568 Bytes
Contents
module ForemanRemoteExecution module SmartProxyExtensions extend ActiveSupport::Concern included do alias_method_chain :refresh, :remote_execution end 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_with_remote_execution errors = refresh_without_remote_execution update_pubkey errors end end end
Version data entries
19 entries across 19 versions & 1 rubygems