Class: Actions::Katello::Provider::ManifestRefresh

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

Instance Method Summary collapse

Methods inherited from AbstractAsyncTask

#humanized_output, #rescue_strategy

Instance Method Details

#humanized_nameObject



19
20
21
# File 'app/lib/actions/katello/provider/manifest_refresh.rb', line 19

def humanized_name
  _("Refresh Manifest")
end

#plan(provider, upstream) ⇒ Object



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

def plan(provider, upstream)
  action_subject provider
  plan_self :upstream => upstream
end

#runObject



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

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