Class: Depdump::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/depdump.rb

Class Method Summary collapse

Class Method Details

.run(files) ⇒ Object



15
16
17
18
19
# File 'lib/depdump.rb', line 15

def self.run(files)
  parser = Depdump::Parser.new.tap { |p| p.parse(files) }
  graph = parser.dependency_graph
  Depdump.config.output.write(graph.format)
end