class Berkshelf::CommunityREST

def initialize(uri = V1_API, options = {})

Options Hash: (**options)
  • :retry_interval (Float) --
  • :retries (Integer) --

Parameters:
  • uri (String) -- (CommunityREST::V1_API)
def initialize(uri = V1_API, options = {})
  options = options.dup
  options = { retries: 5, retry_interval: 0.5, ssl: Berkshelf::Config.instance.ssl }.merge(options)
  @api_uri = uri
  options[:server_url] = uri
  @retries = options.delete(:retries)
  @retry_interval = options.delete(:retry_interval)
  @connection = Berkshelf::RidleyCompatJSON.new(**options)
end