Sha256: 35214b7b76c530a8ac0b4d3a1718494cc18ef7d264f8e38acf38ed9ca7cc82d9

Contents?: true

Size: 515 Bytes

Versions: 5

Compression:

Stored size: 515 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

          plan_action(::Actions::Pulp::Repos::Update, product) if ::SETTINGS[:katello][:use_pulp]
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katello-3.7.0.rc1 app/lib/actions/katello/product/update.rb
katello-3.6.0 app/lib/actions/katello/product/update.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/product/update.rb
katello-3.6.0.rc2 app/lib/actions/katello/product/update.rb
katello-3.6.0.rc1 app/lib/actions/katello/product/update.rb