Module: ForemanRemoteExecution::SmartProxyExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb
Instance Method Summary collapse
Instance Method Details
#pubkey ⇒ Object
9 10 11 |
# File 'app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb', line 9 def pubkey self[:pubkey] || update_pubkey end |
#refresh_with_remote_execution ⇒ Object
20 21 22 23 24 |
# File 'app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb', line 20 def refresh_with_remote_execution errors = refresh_without_remote_execution update_pubkey errors end |
#update_pubkey ⇒ Object
13 14 15 16 17 18 |
# File 'app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb', line 13 def update_pubkey return unless has_feature?('SSH') key = ::ProxyAPI::RemoteExecutionSSH.new(:url => url).pubkey self.update_attribute(:pubkey, key) if key key end |