Sha256: 180b97a598d593540f885dadb362d78930423d346a9c3d6079c260e2b03674fc

Contents?: true

Size: 686 Bytes

Versions: 24

Compression:

Stored size: 686 Bytes

Contents

module ForemanRemoteExecution
  module Concerns
    module Api::V2::RegistrationControllerExtensions
      module ApipieExtensions
        extend Apipie::DSL::Concern

        update_api(:global, :host) do
          param :remote_execution_interface, String, desc: N_("Identifier of the Host interface for Remote execution")
        end
      end

      extend ActiveSupport::Concern

      def host_setup_extension
        remote_execution_interface
        super
      end

      def remote_execution_interface
        return unless params['remote_execution_interface'].present?

        @host.set_execution_interface(params['remote_execution_interface'])
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_remote_execution-5.0.4 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-5.0.3 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-6.0.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-5.0.2 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-5.1.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-5.0.1 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-5.0.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.8.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.6 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.5 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.4 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.7.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.3 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.2 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.1 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.6.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.5.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.4.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.3.1 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb
foreman_remote_execution-4.3.0 app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb