Sha256: a1d11bdae406619fbab632f45646aa4010b02cb43527d49b12de25efb80fb66c
Contents?: true
Size: 1.14 KB
Versions: 105
Compression:
Stored size: 1.14 KB
Contents
module Actions module Katello module ContentViewVersion class RepublishRepositories < Actions::EntryAction def plan(content_view_version) action_subject(content_view_version.content_view) plan_self(:version_id => content_view_version.id) plan_action(::Actions::Katello::Repository::BulkMetadataGenerate, content_view_version.repositories, :force => true) content_view_version.content_view_puppet_environments.each do |repo| plan_action(::Actions::Katello::Repository::MetadataGenerate, repo, :force => true) end end def run #dummy run phase to save input end def resource_locks :link end def humanized_name if input && input[:version_id] version = ::Katello::ContentViewVersion.find_by(:id => input[:version_id]) end if version _("Republish Repositories of %{name} %{version}") % {:name => version.content_view.name, :version => version.version} else _("Republish Version Repositories") end end end end end end
Version data entries
105 entries across 105 versions & 1 rubygems