Module: Berkshelf::RidleyCompatAPI::ClassMethods

Defined in:
lib/berkshelf/ridley_compat.rb

Instance Method Summary collapse

Instance Method Details

#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