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

Version Path
katello-3.12.3 app/lib/actions/katello/product/update.rb
katello-3.12.2 app/lib/actions/katello/product/update.rb
katello-3.12.1 app/lib/actions/katello/product/update.rb
katello-3.11.2 app/lib/actions/katello/product/update.rb
katello-3.10.2 app/lib/actions/katello/product/update.rb
katello-3.12.0 app/lib/actions/katello/product/update.rb
katello-3.12.0.rc2 app/lib/actions/katello/product/update.rb
katello-3.10.1.1 app/lib/actions/katello/product/update.rb
katello-3.12.0.rc1 app/lib/actions/katello/product/update.rb
katello-3.10.1 app/lib/actions/katello/product/update.rb
katello-3.11.1 app/lib/actions/katello/product/update.rb
katello-3.11.0 app/lib/actions/katello/product/update.rb
katello-3.11.0.rc2 app/lib/actions/katello/product/update.rb
katello-3.11.0.rc1 app/lib/actions/katello/product/update.rb
katello-3.10.0 app/lib/actions/katello/product/update.rb
katello-3.10.0.rc1.1 app/lib/actions/katello/product/update.rb
katello-3.9.1 app/lib/actions/katello/product/update.rb
katello-3.10.0.rc1 app/lib/actions/katello/product/update.rb
katello-3.9.0 app/lib/actions/katello/product/update.rb
katello-3.9.0.rc2 app/lib/actions/katello/product/update.rb