Sha256: 7546fc6e2bb156347c85a6fb9f60c1c097c0d5234a7bbe89995461321c74a89f

Contents?: true

Size: 505 Bytes

Versions: 41

Compression:

Stored size: 505 Bytes

Contents

module Actions
  module Katello
    module GpgKey
      class Update < Actions::EntryAction
        def plan(gpg_key, gpg_key_params)
          action_subject gpg_key
          gpg_key.update_attributes!(gpg_key_params)
          gpg_key.repositories.each do |repository|
            if repository.content_type == ::Katello::Repository::DEB_TYPE
              plan_action(::Actions::Katello::Repository::RefreshRepository, repository)
            end
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
katello-3.15.3.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.3 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.2 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.1.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0.rc2 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0.rc1.3 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0.rc1.2 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0.rc1.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.15.0.rc1 app/lib/actions/katello/gpg_key/update.rb
katello-3.14.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.13.4 app/lib/actions/katello/gpg_key/update.rb
katello-3.14.0 app/lib/actions/katello/gpg_key/update.rb
katello-3.13.3 app/lib/actions/katello/gpg_key/update.rb
katello-3.14.0.rc2 app/lib/actions/katello/gpg_key/update.rb
katello-3.13.2 app/lib/actions/katello/gpg_key/update.rb
katello-3.14.0.rc1 app/lib/actions/katello/gpg_key/update.rb
katello-3.13.1 app/lib/actions/katello/gpg_key/update.rb