Sha256: 8bba1b28f3499c14a9a23b1e19a3d53f1269ccbe38e8df52b7883fe4f5b7e8f4

Contents?: true

Size: 684 Bytes

Versions: 10

Compression:

Stored size: 684 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

10 entries across 10 versions & 1 rubygems

Version Path
berkshelf-8.0.15 lib/berkshelf/api_client.rb
berkshelf-8.0.13 lib/berkshelf/api_client.rb
berkshelf-8.0.12 lib/berkshelf/api_client.rb
berkshelf-8.0.9 lib/berkshelf/api_client.rb
berkshelf-8.0.7 lib/berkshelf/api_client.rb
berkshelf-8.0.5 lib/berkshelf/api_client.rb
berkshelf-8.0.2 lib/berkshelf/api_client.rb
berkshelf-8.0.1 lib/berkshelf/api_client.rb
berkshelf-8.0.0 lib/berkshelf/api_client.rb
berkshelf-7.2.2 lib/berkshelf/api_client.rb