5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 07:04:17 +00:00

obtener listado de nodos de un lugar central

This commit is contained in:
f 2022-04-06 18:17:55 -03:00
parent c49c63f776
commit 8edc9b460a

14
app/models/sutty.rb Normal file
View 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