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-4.0.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.5 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.2.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.4 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.1.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.3.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.1.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.0 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.0.rc3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.2.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.17.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.18.1.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-3.17.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.0.0.rc1 app/lib/actions/katello/content_view_version/republish_repositories.rb