Sha256: 99032ceef2b1849b14d3103e47e9d60e3d0e6ff321305e52c302fca545c57794

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 Bytes

Contents

module Berkshelf
  # Used to communicate with a remotely hosted [Berkshelf API Server](https://github.com/berkshelf/berkshelf-api).
  #
  # @example
  #   client = Berkshelf::APIClient.new("https://api.berkshelf.com")
  #   client.universe #=> [...]
  module APIClient
    require_relative 'api_client/version'
    require_relative 'api_client/errors'
    require_relative 'api_client/remote_cookbook'
    require_relative 'api_client/connection'
    require_relative 'api_client/chef_server_connection'

    class << self
      def new(*args)
        Connection.new(*args)
      end

      def chef_server(*args)
        ChefServerConnection.new(*args)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
berkshelf-api-client-4.0.1 lib/berkshelf/api_client.rb
berkshelf-api-client-4.0.0 lib/berkshelf/api_client.rb
berkshelf-api-client-3.0.0 lib/berkshelf/api_client.rb
berkshelf-api-client-2.0.2 lib/berkshelf/api_client.rb