Sha256: 81e8b6d2d5fda93eb54c2a49525de0af77f03058e201d96fca148f4f2201d97a

Contents?: true

Size: 871 Bytes

Versions: 53

Compression:

Stored size: 871 Bytes

Contents

module Actions
  module Pulp
    module Repository
      class DistributorPublish < Pulp::AbstractAsyncTask
        middleware.use Actions::Middleware::SkipIfMatchingContent

        def plan(repository, smart_proxy, options)
          options = {:smart_proxy_id => smart_proxy.id, :options => options, :dependency => options[:dependency]}
          options[:repository_id] = repository.id
          plan_self(options)
        end

        def invoke_external_task
          repo = ::Katello::Repository.find_by(:id => input[:repository_id])
          repo.clear_smart_proxy_sync_histories if smart_proxy(input[:smart_proxy_id]).pulp_primary?
          repo.backend_service(smart_proxy(input[:smart_proxy_id])).distributor_publish(input[:options])
        end

        def humanized_name
          _("Repository metadata publish")
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
katello-4.7.6 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.5 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.4 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.3 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.2 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.6.2.1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.6.2 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.0 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.6.1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.0.rc2 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.7.0.rc1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.4.2.2 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.4.2.1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.4.2 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.5.1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.6.0 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.6.0.rc2 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.6.0.rc1 app/lib/actions/pulp/repository/distributor_publish.rb
katello-4.5.0 app/lib/actions/pulp/repository/distributor_publish.rb