Class: Actions::Katello::ContentCredential::Update

Inherits:
EntryAction
  • Object
show all
Defined in:
app/lib/actions/katello/content_credential/update.rb

Instance Method Summary collapse

Instance Method Details

#plan(gpg_key, gpg_key_params) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/lib/actions/katello/content_credential/update.rb', line 5

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