Class: Actions::Candlepin::Consumer::Destroy

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

Instance Method Summary collapse

Instance Method Details

#runObject



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

def run
  ::Katello::Resources::Candlepin::Consumer.destroy(input[:uuid])
rescue RestClient::Gone
  Rails.logger.error(_("Consumer %s has already been removed") % input[:uuid])
end