5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 18:26:22 +00:00

fixup! fixup! fixup! feat: usar un grafo dirigido para ordenar las dependencias #10464

This commit is contained in:
f 2023-03-17 21:37:49 -03:00
parent 5440ecc2c2
commit 2453a105a3

View file

@ -7,6 +7,9 @@ class Site
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
# Genera un grafo dirigido de todos los métodos de publicación
#
# @return [RGL::DirectedAdjacencyGraph]
def deployment_graph def deployment_graph
@deployment_graph ||= RGL::DirectedAdjacencyGraph.new.tap do |graph| @deployment_graph ||= RGL::DirectedAdjacencyGraph.new.tap do |graph|
deploys.each do |deploy| deploys.each do |deploy|