Module: Api::V2::RegistrationControllerExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
Defined Under Namespace
Modules: ApipieExtensions
Instance Method Summary
collapse
Instance Method Details
#host_setup_extension ⇒ Object
14
15
16
17
18
|
# File 'app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb', line 14
def host_setup_extension
remote_execution_interface
reset_host_known_keys! unless @host.new_record?
super
end
|
#remote_execution_interface ⇒ Object
20
21
22
23
24
|
# File 'app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb', line 20
def remote_execution_interface
return unless params['remote_execution_interface'].present?
@host.set_execution_interface(params['remote_execution_interface'])
end
|
#reset_host_known_keys! ⇒ Object
26
27
28
|
# File 'app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb', line 26
def reset_host_known_keys!
@host.host_proxy_invocations.destroy_all
end
|