Class: Berkshelf::RidleyCompat

Inherits:
Chef::HTTP::Simple
  • Object
show all
Includes:
RidleyCompatAPI
Defined in:
lib/berkshelf/ridley_compat.rb

Overview

RidleyCompat is the ServerAPI, but we inherit from Chef::HTTP::Simple and then include all our middlewares and then need to include our own CompatAPI. The end result is a ridley-esque way of talking to a chef server.

Instance Method Summary collapse

Methods included from RidleyCompatAPI

#get, included, #server_url

Constructor Details

#initialize(**opts) ⇒ RidleyCompat

Returns a new instance of RidleyCompat.



103
104
105
106
# File 'lib/berkshelf/ridley_compat.rb', line 103

def initialize(**opts)
  opts[:version_class] = Chef::CookbookManifestVersions
  super(**opts)
end