Class: RailsGraph::Commands::BuildGraph

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_graph/commands/build_graph.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(configuration:) ⇒ Object



34
35
36
# File 'lib/rails_graph/commands/build_graph.rb', line 34

def self.call(configuration:)
  new(configuration: configuration).call
end

Instance Method Details

#callObject



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/rails_graph/commands/build_graph.rb', line 38

def call
  setup_generic_nodes

  RailsGraph::Commands::Builders::GemsBuilder.enrich(graph: graph, configuration: configuration)
  RailsGraph::Commands::Builders::Databases.enrich(graph: graph, configuration: configuration)
  RailsGraph::Commands::Builders::Models.enrich(inspector: inspector, graph: graph, classes: classes,
                                                configuration: configuration)
  RailsGraph::Commands::Builders::Packs.enrich(graph: graph, configuration: configuration)

  graph
end