Sha256: 46276b973c06d4d51f25abd45ad3ce54c2fcd741a10866b73f32442df43ba265

Contents?: true

Size: 556 Bytes

Versions: 224

Compression:

Stored size: 556 Bytes

Contents

module ProxyAPI
  class Pulp < ::ProxyAPI::Resource
    def initialize(args)
      @url = args[:url] + "/pulp/status"
      super args
    end

    def pulp_storage
      @url += "/disk_usage"
      @pulp_storage ||= parse(get)
    rescue => e
      raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to detect pulp storage"))
    end

    def capsule_puppet_path
      @url += "/puppet"
      @capsule_puppet_path ||= parse(get)
    rescue => e
      raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to detect puppet path"))
    end
  end
end

Version data entries

224 entries across 224 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 lib/proxy_api/pulp.rb
katello-4.15.0.rc1 lib/proxy_api/pulp.rb
katello-4.14.1 lib/proxy_api/pulp.rb
katello-4.14.0 lib/proxy_api/pulp.rb
katello-4.14.0.rc3 lib/proxy_api/pulp.rb
katello-4.14.0.rc2 lib/proxy_api/pulp.rb
katello-4.14.0.rc1.1 lib/proxy_api/pulp.rb
katello-4.14.0.rc1 lib/proxy_api/pulp.rb
katello-4.13.1 lib/proxy_api/pulp.rb
katello-4.13.0 lib/proxy_api/pulp.rb
katello-4.12.1 lib/proxy_api/pulp.rb
katello-4.13.0.rc1 lib/proxy_api/pulp.rb
katello-4.12.0 lib/proxy_api/pulp.rb
katello-4.12.0.rc3 lib/proxy_api/pulp.rb
katello-4.12.0.rc2 lib/proxy_api/pulp.rb
katello-4.12.0.rc1 lib/proxy_api/pulp.rb
katello-4.11.1 lib/proxy_api/pulp.rb
katello-4.11.0 lib/proxy_api/pulp.rb
katello-4.11.0.rc2 lib/proxy_api/pulp.rb
katello-4.11.0.rc1 lib/proxy_api/pulp.rb