Sha256: 670a19150f65a2e51b499a7c2d3763f85cb41065d04e1cc847b428ac7345b7b5

Contents?: true

Size: 966 Bytes

Versions: 44

Compression:

Stored size: 966 Bytes

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)
        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

44 entries across 44 versions & 1 rubygems

Version Path
katello-4.8.4 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.8.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.6 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.8.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.9.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.9.0.rc1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.8.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.5 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.8.0 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.8.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.4 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.8.0.rc1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.3 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.6.2.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.6.2 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.0 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.6.1 app/lib/actions/katello/content_view_version/republish_repositories.rb
katello-4.7.0.rc2 app/lib/actions/katello/content_view_version/republish_repositories.rb