Sha256: 65bd043750fb1052f3d828d840db532ba12bb7a0e92e5541b3fbc1502274cc6d

Contents?: true

Size: 844 Bytes

Versions: 28

Compression:

Stored size: 844 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.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.find(capsule_id))
          capsule_content.pulp_server.extensions
        else
          ::Katello.pulp_server.extensions
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.3.2 app/lib/actions/pulp/abstract.rb
katello-3.3.1.1 app/lib/actions/pulp/abstract.rb
katello-3.3.1 app/lib/actions/pulp/abstract.rb
katello-3.3.0.1 app/lib/actions/pulp/abstract.rb
katello-3.3.0 app/lib/actions/pulp/abstract.rb
katello-3.3.0.rc2 app/lib/actions/pulp/abstract.rb
katello-3.3.0.rc1.1 app/lib/actions/pulp/abstract.rb
katello-3.3.0.rc1 app/lib/actions/pulp/abstract.rb
katello-3.2.1.1 app/lib/actions/pulp/abstract.rb
katello-3.2.1 app/lib/actions/pulp/abstract.rb
katello-3.2.0 app/lib/actions/pulp/abstract.rb
katello-3.2.0.rc3 app/lib/actions/pulp/abstract.rb
katello-3.2.0.rc2 app/lib/actions/pulp/abstract.rb
katello-3.2.0.rc1.1 app/lib/actions/pulp/abstract.rb
katello-3.2.0.rc1 app/lib/actions/pulp/abstract.rb
katello-3.1.0.1 app/lib/actions/pulp/abstract.rb
katello-3.1.0 app/lib/actions/pulp/abstract.rb
katello-3.1.0.rc2.1 app/lib/actions/pulp/abstract.rb
katello-3.0.2 app/lib/actions/pulp/abstract.rb
katello-3.1.0.rc1 app/lib/actions/pulp/abstract.rb