Sha256: 54ac168634d0db1500c4a15097e839c0b9c73737e13baea6f9a441f4389f6bcf
Contents?: true
Size: 741 Bytes
Versions: 21
Compression:
Stored size: 741 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 end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems