lib/ridley/client.rb in ridley-4.4.3 vs lib/ridley/client.rb in ridley-4.5.0
- old
+ new
@@ -246,9 +246,15 @@
# @return [Array<ChefObject>, Hash]
def partial_search(index, query = nil, attributes = [], options = {})
@resources_registry[:search_resource].partial(index, query, Array(attributes), @resources_registry, options)
end
+ def universe
+ connection.send(:get, "universe").body
+ rescue Errors::HTTPError, Errors::ClientError => ex
+ abort(ex)
+ end
+
# The encrypted data bag secret for this connection.
#
# @raise [Ridley::Errors::EncryptedDataBagSecretNotFound]
#
# @return [String, nil]