mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 11:01:41 +00:00
feat: devolver una lista ordenada de metodos de publicacion
This commit is contained in:
parent
db25750ab0
commit
0ed01a61f7
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