module Bundler::Molinillo::UI

def debug(depth = 0)

Returns:
  • (void) -

Parameters:
  • depth (Integer) -- the current depth of the resolution process.
def debug(depth = 0)
  if debug?
    debug_info = yield
    debug_info = debug_info.inspect unless debug_info.is_a?(String)
    output.puts debug_info.split("\n").map { |s| '  ' * depth + s }
  end
end