Sha256: be4626972f601c54f9bb67a4617006247bac825dbb463b3de84e93d8f65807f0
Contents?: true
Size: 840 Bytes
Versions: 9
Compression:
Stored size: 840 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 (product.previous_changes.key?('ssl_ca_cert_id') || product.previous_changes.key?('ssl_client_cert_id') || product.previous_changes.key?('ssl_client_key_id')) plan_action(::Actions::Katello::Product::RepositoriesCertsReset, product) end product.reload plan_action(::Actions::Pulp::Repos::Update, product) if ::SETTINGS[:katello][:use_pulp] end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems