Class: Actions::Candlepin::Product::ContentUpdate

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

Instance Method Summary collapse

Instance Method Details

#runObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/lib/actions/candlepin/product/content_update.rb', line 17

def run
  output[:response] = ::Katello::Resources::Candlepin::Content.
      update(input[:owner],
             id: input[:content_id],
             name: input[:name],
             contentUrl: input[:content_url],
             gpgUrl: input[:gpg_key_url] || '', #candlepin ignores nil
             type: input[:type],
             arches: input[:arches] || '',
             requiredTags: input[:os_versions],
             label: input[:label],
             metadataExpire: 1,
             vendor: ::Katello::Provider::CUSTOM)
end