Class: Actions::Katello::Provider::ManifestDelete

Inherits:
AbstractAsyncTask show all
Defined in:
app/lib/actions/katello/provider/manifest_delete.rb

Instance Method Summary collapse

Methods inherited from AbstractAsyncTask

#humanized_output, #rescue_strategy

Instance Method Details

#humanized_nameObject



18
19
20
# File 'app/lib/actions/katello/provider/manifest_delete.rb', line 18

def humanized_name
  _("Delete Manifest")
end

#plan(provider) ⇒ Object



7
8
9
10
# File 'app/lib/actions/katello/provider/manifest_delete.rb', line 7

def plan(provider)
  action_subject provider
  plan_self
end

#runObject



22
23
24
25
# File 'app/lib/actions/katello/provider/manifest_delete.rb', line 22

def run
  provider = ::Katello::Provider.find(input[:provider][:id])
  provider.delete_manifest
end