Class: Bundler::Dependencies::Visitors::ShellTree

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/dependencies/visitors/shell_tree.rb

Instance Method Summary collapse

Instance Method Details

#walk(graph, shell = nil) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bundler/dependencies/visitors/shell_tree.rb', line 5

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