Sha256: 4253c7167ec4f2356c891dfb6015d2231d383512eced5339c247eabf6e3ff4b1

Contents?: true

Size: 862 Bytes

Versions: 30

Compression:

Stored size: 862 Bytes

Contents

module Actions
  module Pulp
    class Abstract < Actions::Base
      middleware.use ::Actions::Middleware::RemoteAction
      middleware.use Actions::Middleware::PulpServicesCheck

      def pulp_resources(capsule_id = nil)
        capsule_id ||= input["capsule_id"]
        if capsule_id
          capsule_content = ::Katello::CapsuleContent.new(SmartProxy.unscoped.find(capsule_id))
          capsule_content.pulp_server.resources
        else
          ::Katello.pulp_server.resources
        end
      end

      def pulp_extensions(capsule_id = nil)
        capsule_id ||= input["capsule_id"]
        if capsule_id
          capsule_content = ::Katello::CapsuleContent.new(SmartProxy.unscoped.find(capsule_id))
          capsule_content.pulp_server.extensions
        else
          ::Katello.pulp_server.extensions
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
katello-3.8.1 app/lib/actions/pulp/abstract.rb
katello-3.7.1.1 app/lib/actions/pulp/abstract.rb
katello-3.7.1 app/lib/actions/pulp/abstract.rb
katello-3.8.0 app/lib/actions/pulp/abstract.rb
katello-3.8.0.rc3 app/lib/actions/pulp/abstract.rb
katello-3.8.0.rc2 app/lib/actions/pulp/abstract.rb
katello-3.7.0 app/lib/actions/pulp/abstract.rb
katello-3.8.0.rc1 app/lib/actions/pulp/abstract.rb
katello-3.7.0.rc2 app/lib/actions/pulp/abstract.rb
katello-3.7.0.rc1 app/lib/actions/pulp/abstract.rb
katello-3.5.2 app/lib/actions/pulp/abstract.rb
katello-3.6.0 app/lib/actions/pulp/abstract.rb
katello-3.6.0.1.rc2 app/lib/actions/pulp/abstract.rb
katello-3.6.0.rc2 app/lib/actions/pulp/abstract.rb
katello-3.6.0.rc1 app/lib/actions/pulp/abstract.rb
katello-3.5.1.1 app/lib/actions/pulp/abstract.rb
katello-3.5.1 app/lib/actions/pulp/abstract.rb
katello-3.5.0.1 app/lib/actions/pulp/abstract.rb
katello-3.5.0 app/lib/actions/pulp/abstract.rb
katello-3.5.0.rc2 app/lib/actions/pulp/abstract.rb