module Bundler::Molinillo::UI
def after_resolution
-
(void)
-
def after_resolution output.puts end
def before_resolution
-
(void)
-
def before_resolution output.print 'Resolving dependencies...' end
def debug(depth = 0)
-
(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
def debug?
-
(Boolean)
-
def debug? @debug_mode ||= ENV['MOLINILLO_DEBUG'] end
def indicate_progress
-
(void)
-
def indicate_progress output.print '.' unless debug? end
def output
-
(IO)
-
def output STDOUT end
def progress_rate
-
(Float)
-
def progress_rate 0.33 end