Sha256: 1d9b6a43e07f4497498221a62b86ae7ce6a189af2518d006708671c0e26c260f

Contents?: true

Size: 679 Bytes

Versions: 53

Compression:

Stored size: 679 Bytes

Contents

module Actions
  module Katello
    module Product
      class Update < Actions::EntryAction
        def plan(product, product_params)
          action_subject product
          product.update_attributes!(product_params)
          if product.previous_changes.key?('gpg_key_id')
            plan_action(::Actions::Katello::Product::RepositoriesGpgReset, product)
          end

          if ::SETTINGS[:katello][:use_cp] && product.productContent_changed?
            plan_action(::Actions::Candlepin::Product::Update, product)
          end
          plan_action(::Actions::Pulp::Repos::Update, product) if ::SETTINGS[:katello][:use_pulp]
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
katello-2.4.3 app/lib/actions/katello/product/update.rb
katello-3.0.0.rc7 app/lib/actions/katello/product/update.rb
katello-3.0.0.rc5 app/lib/actions/katello/product/update.rb
katello-2.4.2 app/lib/actions/katello/product/update.rb
katello-3.0.0.rc4 app/lib/actions/katello/product/update.rb
katello-3.0.0.rc3 app/lib/actions/katello/product/update.rb
katello-3.0.0.rc2 app/lib/actions/katello/product/update.rb
katello-3.0.0.rc1 app/lib/actions/katello/product/update.rb
katello-2.4.1 app/lib/actions/katello/product/update.rb
katello-2.4.0 app/lib/actions/katello/product/update.rb
katello-2.4.0.rc3 app/lib/actions/katello/product/update.rb
katello-2.4.0.rc2 app/lib/actions/katello/product/update.rb
katello-2.4.0.rc1 app/lib/actions/katello/product/update.rb