mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 20:26:22 +00:00
fixup! fixup! fixup! feat: usar un grafo dirigido para ordenar las dependencias #10464
This commit is contained in:
parent
5440ecc2c2
commit
2453a105a3
1 changed files with 3 additions and 0 deletions
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue