Sha256: dd80ae706f67d2acb2cfa4c50e834d2fb024e96f4b8e8f786c98a312ac18e758

Contents?: true

Size: 564 Bytes

Versions: 231

Compression:

Stored size: 564 Bytes

Contents

module ProxyAPI
  class PulpNode < ::ProxyAPI::Resource
    def initialize(args)
      @url = args[:url] + "/pulpnode/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

231 entries across 231 versions & 1 rubygems

Version Path
katello-4.16.0 lib/proxy_api/pulp_node.rb
katello-4.15.1 lib/proxy_api/pulp_node.rb
katello-4.16.0.rc2 lib/proxy_api/pulp_node.rb
katello-4.16.0.rc1 lib/proxy_api/pulp_node.rb
katello-4.14.3 lib/proxy_api/pulp_node.rb
katello-4.14.2 lib/proxy_api/pulp_node.rb
katello-4.15.0 lib/proxy_api/pulp_node.rb
katello-4.15.0.rc2 lib/proxy_api/pulp_node.rb
katello-4.15.0.rc1 lib/proxy_api/pulp_node.rb
katello-4.14.1 lib/proxy_api/pulp_node.rb
katello-4.14.0 lib/proxy_api/pulp_node.rb
katello-4.14.0.rc3 lib/proxy_api/pulp_node.rb
katello-4.14.0.rc2 lib/proxy_api/pulp_node.rb
katello-4.14.0.rc1.1 lib/proxy_api/pulp_node.rb
katello-4.14.0.rc1 lib/proxy_api/pulp_node.rb
katello-4.13.1 lib/proxy_api/pulp_node.rb
katello-4.13.0 lib/proxy_api/pulp_node.rb
katello-4.12.1 lib/proxy_api/pulp_node.rb
katello-4.13.0.rc1 lib/proxy_api/pulp_node.rb
katello-4.12.0 lib/proxy_api/pulp_node.rb