mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 22:46:21 +00:00
feat: devolver una lista ordenada de metodos de publicacion
This commit is contained in:
parent
2453a105a3
commit
e67f67e175
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rgl/adjacency'
|
||||
require 'rgl/topsort'
|
||||
|
||||
class Site
|
||||
module DeployDependencies
|
||||
|
@ -25,6 +26,13 @@ class Site
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Devuelve una lista ordenada de todos los métodos de publicación
|
||||
#
|
||||
# @return [Array]
|
||||
def deployment_list
|
||||
@deployment_list ||= deployment_graph.topsort_iterator.to_a
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue