Sha256: 115fb84cace9a52c215b63cfa61fcbf63874bb322dbf703e9201f899024a9ec4

Contents?: true

Size: 682 Bytes

Versions: 21

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

21 entries across 21 versions & 1 rubygems

Version Path
berkshelf-7.2.1 lib/berkshelf/api_client.rb
berkshelf-7.2.0 lib/berkshelf/api_client.rb
berkshelf-7.1.0 lib/berkshelf/api_client.rb
berkshelf-7.0.10 lib/berkshelf/api_client.rb
berkshelf-7.0.9 lib/berkshelf/api_client.rb
berkshelf-7.0.8 lib/berkshelf/api_client.rb
berkshelf-7.0.7 lib/berkshelf/api_client.rb
berkshelf-6.3.4 lib/berkshelf/api_client.rb
berkshelf-7.0.6 lib/berkshelf/api_client.rb
berkshelf-7.0.5 lib/berkshelf/api_client.rb
berkshelf-6.3.3 lib/berkshelf/api_client.rb
berkshelf-7.0.4 lib/berkshelf/api_client.rb
berkshelf-7.0.3 lib/berkshelf/api_client.rb
berkshelf-7.0.2 lib/berkshelf/api_client.rb
berkshelf-7.0.1 lib/berkshelf/api_client.rb
berkshelf-7.0.0 lib/berkshelf/api_client.rb
berkshelf-6.3.2 lib/berkshelf/api_client.rb
berkshelf-6.3.1 lib/berkshelf/api_client.rb
berkshelf-6.3.0 lib/berkshelf/api_client.rb
berkshelf-6.2.2 lib/berkshelf/api_client.rb