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-3.5.2 app/lib/actions/katello/product/update.rb
katello-3.5.1.1 app/lib/actions/katello/product/update.rb
katello-3.5.1 app/lib/actions/katello/product/update.rb
katello-3.5.0.1 app/lib/actions/katello/product/update.rb
katello-3.5.0 app/lib/actions/katello/product/update.rb
katello-3.5.0.rc2 app/lib/actions/katello/product/update.rb
katello-3.5.0.rc1 app/lib/actions/katello/product/update.rb
katello-3.4.5 app/lib/actions/katello/product/update.rb
katello-3.4.4 app/lib/actions/katello/product/update.rb
katello-3.4.2 app/lib/actions/katello/product/update.rb
katello-3.4.1 app/lib/actions/katello/product/update.rb
katello-3.4.0.2 app/lib/actions/katello/product/update.rb
katello-3.4.0.1 app/lib/actions/katello/product/update.rb
katello-3.3.2 app/lib/actions/katello/product/update.rb
katello-3.4.0 app/lib/actions/katello/product/update.rb
katello-3.4.0.rc2 app/lib/actions/katello/product/update.rb
katello-3.4.0.rc1 app/lib/actions/katello/product/update.rb
katello-3.3.1.1 app/lib/actions/katello/product/update.rb
katello-3.3.1 app/lib/actions/katello/product/update.rb
katello-3.3.0.1 app/lib/actions/katello/product/update.rb