Sha256: 3c7b26385a1b73cd28a4989831ed8ddbec071561ea2b9e35382f849d0662d99b

Contents?: true

Size: 1.16 KB

Versions: 102

Compression:

Stored size: 1.16 KB

Contents

module Actions
  module Katello
    module Environment
      class PublishRepositories < Actions::EntryAction
        middleware.use ::Actions::Middleware::RemoteAction

        input_format do
          param :id
          param :name
        end

        def plan(env, options = {})
          repositories = options[:content_type] ? env.repositories.with_type(options[:content_type]) : env.repositories
          action_subject(env)
          concurrence do
            repositories.each do |repository|
              sequence do
                repository.set_container_repository_name
                plan_action(::Actions::Katello::Repository::InstanceUpdate, repository)
                plan_action(::Actions::Katello::Repository::CapsuleSync, repository)
              end
            end

            plan_self
          end
        end

        def rescue_strategy
          Dynflow::Action::Rescue::Skip
        end

        def humanized_name
          _("Publish Lifecycle Environment Repositories")
        end

        def humanized_input
          input['kt_environment'].nil? ? super : ["'#{input['kt_environment']['name']}'"] + super
        end
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
katello-4.1.4 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.0.3 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.2.0.1.rc3 app/lib/actions/katello/environment/publish_repositories.rb
katello-3.18.5 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.2.0.1.rc2 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.2.0.rc2 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.3 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.2.0.rc1 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.0.2.1 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.2.1 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.0.2 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.2 app/lib/actions/katello/environment/publish_repositories.rb
katello-3.18.4 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.1 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.0 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.0.1.2 app/lib/actions/katello/environment/publish_repositories.rb
katello-3.18.3.1 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/environment/publish_repositories.rb
katello-4.0.1.1 app/lib/actions/katello/environment/publish_repositories.rb