Class: Katello::RemoteExecutionController

Inherits:
JobInvocationsController
  • Object
show all
Includes:
Api::V2::BulkHostsExtension, Concerns::Api::V2::HostErrataExtensions
Defined in:
app/controllers/katello/remote_execution_controller.rb

Instance Method Summary collapse

Instance Method Details

#_routesObject



22
23
24
# File 'app/controllers/katello/remote_execution_controller.rb', line 22

def _routes
  Rails.application.routes
end

#createObject



10
11
12
13
14
15
16
17
18
# File 'app/controllers/katello/remote_execution_controller.rb', line 10

def create
  @composer = prepare_composer
  if params[:customize] != 'true' && @composer.save
    @composer.trigger
    redirect_to job_invocation_path(@composer.job_invocation)
  else
    redirect_to new_job_invocation_path({ feature: feature_name, host_ids: hosts.ids, inputs: inputs })
  end
end

#newObject



6
7
8
# File 'app/controllers/katello/remote_execution_controller.rb', line 6

def new
  @composer = prepare_composer
end