Sha256: 86f1fefda58448119206bfd9c77929128e8fc69f2a1dfbc24a3015448b664d01

Contents?: true

Size: 799 Bytes

Versions: 4

Compression:

Stored size: 799 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], :options => options)
            plan_action(SavePublication, repository, action.output, :contents_changed => options[:contents_changed])
          end
        end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
katello-3.14.1 app/lib/actions/pulp3/repository/create_publication.rb
katello-3.14.0 app/lib/actions/pulp3/repository/create_publication.rb
katello-3.14.0.rc2 app/lib/actions/pulp3/repository/create_publication.rb
katello-3.14.0.rc1 app/lib/actions/pulp3/repository/create_publication.rb