Class: Actions::Pulp::Consumer::ContentUninstall

Inherits:
AbstractContentAction show all
Includes:
Helpers::Presenter, ExpectOneTask
Defined in:
app/lib/actions/pulp/consumer/content_uninstall.rb

Constant Summary

Constants inherited from AbstractAsyncTask

AbstractAsyncTask::FINISHED_STATES

Instance Method Summary collapse

Methods included from ExpectOneTask

#external_task=

Methods inherited from AbstractContentAction

#external_task=, #find_errors, #process_timeout, #rescue_strategy

Methods inherited from AbstractAsyncTask

#cancel, #cancel!, #done?, #external_task, #humanized_state, #rescue_external_task, #run

Methods inherited from Abstract

#pulp_extensions, #pulp_resources

Instance Method Details

#invoke_external_taskObject



14
15
16
17
18
# File 'app/lib/actions/pulp/consumer/content_uninstall.rb', line 14

def invoke_external_task
  pulp_extensions.consumer.uninstall_content(input[:consumer_uuid],
                                             input[:type],
                                             input[:args])
end

#presenterObject



20
21
22
# File 'app/lib/actions/pulp/consumer/content_uninstall.rb', line 20

def presenter
  Consumer::ContentPresenter.new(self)
end