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

Version Path
katello-3.14.0 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.14.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.14.0.rc1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.0 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.0.rc2.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.12.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.12.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.13.0.rc1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.12.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.11.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.10.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.12.0 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.12.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.10.1.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.12.0.rc1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.10.1 app/lib/actions/katello/content_view_version/republish_repositories.rb