def get(path)
      _get(path)
    rescue Net::OpenTimeout, Errno::ECONNREFUSED => exc
      raise OctocatalogDiff::Errors::PuppetDBConnectionError, "#{exc.class} connecting to PuppetDB (need VPN on?): #{exc.message}"
    end
def get(path)
      _get(path)
    rescue Net::OpenTimeout, Errno::ECONNREFUSED => exc
      raise OctocatalogDiff::Errors::PuppetDBConnectionError, "#{exc.class} connecting to PuppetDB (need VPN on?): #{exc.message}"
    end
Constructor - will construct connection parameters from a variety
 of sources, including arguments and environment variables. Supported
 environment variables:
   PUPPETDB_URL
   PUPPETDB_HOST [+ PUPPETDB_PORT] [+ PUPPETDB_SSL]

 Order of precedence:
    1. :puppetdb_url argument (String or Array<String>)
    2. :puppetdb_host argument [+ :puppetdb_port] [+ :puppetdb_ssl]
    3. ENV['PUPPETDB_URL']
    4. ENV['PUPPETDB_HOST'] [+ ENV['PUPPETDB_PORT']], [+ ENV['PUPPETDB_SSL']]
 When it finds one of these, it stops and does not process any others.

 When :puppetdb_url is an array, all given URLs are tried, in random order,
 until a connection succeeds. If a connection succeeds, any errors from previously
 failed connections are suppressed.

 Supported arguments:
 @param :puppetdb_url [String or Array<String>] PuppetDB URL(s) to try in random order
 @param :puppetdb_host [String] PuppetDB hostname, when constructing a URL
 @param :puppetdb_port [Integer] Port number, defaults to 8080 (non-SSL) or 8081 (SSL)
 @param :puppetdb_ssl [Boolean] defaults to true, because you should use SSL
 @param :puppetdb_ssl_ca [String] Path to file containing CA certificate
 @param :puppetdb_ssl_verify [Boolean] Override the CA verification setting guessed from parameters
 @param :puppetdb_ssl_client_pem [String] PEM-encoded client key and certificate
 @param :puppetdb_ssl_client_p12 [String] pkcs12-encoded client key and certificate
 @param :puppetdb_ssl_client_password [String] Path to file containing password for SSL client key (any format)
 @param :puppetdb_ssl_client_auth [Boolean] Override the client-auth that is guessed from parameters
 @param :puppetdb_token [String] PE RBAC token to authenticate to PuppetDB API
 @param :timeout [Integer] Connection timeout for PuppetDB (default=10)
 Wrapper around the httparty call in the private _get method.
 Returns the parsed result of getting the provided URL and returns
 a friendlier error message if there are network connection problems
 to PuppetDB.
 @param path [String] Path portion of the URL
 @return [Object] Parsed reply from PuppetDB as an object