Sha256: 17f14e5be1622e19414205c4bf3590b9d9efbf4b07fb0cc08eec94c23433b9d6
Contents?: true
Size: 801 Bytes
Versions: 11
Compression:
Stored size: 801 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_content(capsule_id).resources end def pulp_extensions(capsule_id = nil) capsule_content(capsule_id).extensions end def smart_proxy(id) SmartProxy.unscoped.find(id) end private def capsule_content(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 else ::Katello.pulp_server end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems