Sha256: d38a04a950b291397faf233c3e9d6b0a328a7cb0186b61e6aa39b989aa0d1684

Contents?: true

Size: 965 Bytes

Versions: 72

Compression:

Stored size: 965 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class CreatePublication < Pulp3::AbstractAsyncTask
        middleware.use Actions::Middleware::ExecuteIfContentsChanged
        def plan(repository, smart_proxy, options)
          sequence do
            action = plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id, :contents_changed => options[:contents_changed],
                               :skip_publication_creation => options[:skip_publication_creation])
            plan_action(SavePublication, repository, action.output, :contents_changed => options[:contents_changed])
          end
        end

        def invoke_external_task
          unless input[:skip_publication_creation]
            repository = ::Katello::Repository.find(input[:repository_id])
            output[:response] = repository.backend_service(smart_proxy).with_mirror_adapter.create_publication
          end
        end
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
katello-4.13.0 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.12.1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.12.0 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.12.0.rc3 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.12.0.rc2 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.12.0.rc1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.11.1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.11.0 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.11.0.rc2 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.11.0.rc1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.10.0 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.9.2 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.10.0.rc2 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.10.0.rc1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.8.4 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.9.1 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.8.3 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.9.0 app/lib/actions/pulp3/repository/create_publication.rb
katello-4.7.6 app/lib/actions/pulp3/repository/create_publication.rb