Method: Berkshelf::RidleyCompatAPI::ClassMethods#new_client

Defined in:
lib/berkshelf/ridley_compat.rb

#new_client(**opts) {|client| ... } ⇒ Object

Yields:

  • (client)


54
55
56
57
58
59
# File 'lib/berkshelf/ridley_compat.rb', line 54

def new_client(**opts, &block)
  client = new(**opts)
  yield client
  # ensure
  # FIXME: does Chef::HTTP support close anywhere?  this will just leak open fds
end