Module: Berkshelf::APIClient

Defined in:
lib/berkshelf/api_client.rb,
lib/berkshelf/api_client/errors.rb,
lib/berkshelf/api_client/version.rb,
lib/berkshelf/api_client/connection.rb,
lib/berkshelf/api_client/remote_cookbook.rb

Overview

Used to communicate with a remotely hosted [Berkshelf API Server](github.com/berkshelf/berkshelf-api).

Examples:

client = Berkshelf::APIClient.new("https://api.berkshelf.com")
client.universe #=> [...]

Defined Under Namespace

Classes: BadResponse, Connection, RemoteCookbook, ServiceNotFound, ServiceUnavaiable, TimeoutError

Constant Summary collapse

VERSION =
"2.0.1"

Class Method Summary collapse

Class Method Details

.new(*args) ⇒ Object



14
15
16
# File 'lib/berkshelf/api_client.rb', line 14

def new(*args)
  Connection.new(*args)
end