Class: Actions::Candlepin::Product::Create

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

Instance Method Summary collapse

Instance Method Details

#runObject



11
12
13
14
15
# File 'app/lib/actions/candlepin/product/create.rb', line 11

def run
  output[:response] = ::Katello::Resources::Candlepin::Product.create(:name => input[:name],
                                                                      :multiplier => input[:multiplier],
                                                                      :attributes => input[:attributes])
end