Sha256: b0560942500d3274aa213daa557e4752d5fac504f5db92fdae0603d8616148ea
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
module Bundler module Dependencies module Visitors class ShellTree def walk(graph, shell = nil) Visitor.walk(graph) do |gem, depth| if depth > 0 print ' ' * depth print '- ' end say(shell, gem.name, (:bold if depth == 0)) end nil end private def say(shell, message, opts) if shell shell.say(message, opts) else puts message end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bundler-dependencies-0.6.0 | lib/bundler/dependencies/visitors/shell_tree.rb |
bundler-dependencies-0.5.1 | lib/bundler/dependencies/visitors/shell_tree.rb |