Sha256: aebfd1093eee18951d500a3f297f13e754ad0e573462c3bd9b360e546454ccf5

Contents?: true

Size: 494 Bytes

Versions: 57

Compression:

Stored size: 494 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!(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

57 entries across 57 versions & 1 rubygems

Version Path
katello-4.1.4 app/lib/actions/katello/gpg_key/update.rb
katello-4.0.3 app/lib/actions/katello/gpg_key/update.rb
katello-3.18.5 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.3 app/lib/actions/katello/gpg_key/update.rb
katello-4.0.2.1 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.2.1 app/lib/actions/katello/gpg_key/update.rb
katello-4.0.2 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.2 app/lib/actions/katello/gpg_key/update.rb
katello-3.18.4 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.1 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.0 app/lib/actions/katello/gpg_key/update.rb
katello-4.0.1.2 app/lib/actions/katello/gpg_key/update.rb
katello-3.18.3.1 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/gpg_key/update.rb
katello-4.0.1.1 app/lib/actions/katello/gpg_key/update.rb
katello-3.18.3 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.0.rc2 app/lib/actions/katello/gpg_key/update.rb
katello-4.0.1 app/lib/actions/katello/gpg_key/update.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/gpg_key/update.rb