Class: RailsGraph::Commands::Builders::Packs

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.enrich(graph:, configuration:) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rails_graph/commands/builders/packs.rb', line 7

def self.enrich(graph:, configuration:)
  return unless configuration.include_packwerk?

  new(graph: graph).enrich

  graph
end

Instance Method Details

#enrichObject



15
16
17
18
19
# File 'lib/rails_graph/commands/builders/packs.rb', line 15

def enrich
  build_pack_nodes
  build_pack_relationships
  build_pack_model_relationships
end