Class: Actions::Candlepin::Owner::DestroyImports

Inherits:
Abstract
  • Object
show all
Defined in:
app/lib/actions/candlepin/owner/destroy_imports.rb

Instance Method Summary collapse

Instance Method Details

#runObject



9
10
11
12
13
# File 'app/lib/actions/candlepin/owner/destroy_imports.rb', line 9

def run
  organization = ::Organization.find_by!(label: input[:label])
  output[:response] = ::Katello::Resources::Candlepin::Owner.destroy_imports(organization.label, wait_until_complete: true)
  organization.redhat_provider.index_subscriptions
end