Class: Actions::Candlepin::Product::ContentCreate

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

Instance Method Summary collapse

Instance Method Details

#runObject



12
13
14
15
16
17
18
19
20
# File 'app/lib/actions/candlepin/product/content_create.rb', line 12

def run
  output[:response] = ::Katello::Resources::Candlepin::Content.
      create(name: input[:name],
             contentUrl: input[:content_url],
             type: input[:type],
             label: input[:label],
             metadataExpire: 1,
             vendor: ::Katello::Provider::CUSTOM)
end