mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 21:16:22 +00:00
obtener listado de nodos de un lugar central
This commit is contained in:
parent
c49c63f776
commit
8edc9b460a
1 changed files with 14 additions and 0 deletions
14
app/models/sutty.rb
Normal file
14
app/models/sutty.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Configuración general de Sutty
|
||||
class Sutty
|
||||
extend self
|
||||
|
||||
# Los nodos son otros servidores de Sutty hacia los que se sincronizan
|
||||
# sitios.
|
||||
#
|
||||
# @return [Array]
|
||||
def nodes
|
||||
@nodes ||= ENV.fetch('SUTTY_NODES', '').split(',')
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue