22 lines
817 B
Ruby
22 lines
817 B
Ruby
# frozen_string_literal: true
|
|
|
|
# adn/tools/core/constants.rb — Definición centralizada de rutas y constantes del ADN
|
|
# ==============================================================================
|
|
|
|
module ADN
|
|
# El script 'run' está en adn/tools/run, por lo que la raíz es 2 niveles arriba
|
|
PROJECT_ROOT = File.expand_path('../../..', __dir__)
|
|
|
|
NODOS_DIR = File.join(PROJECT_ROOT, 'nodos')
|
|
PROYECTOS_DIR = File.join(PROJECT_ROOT, 'docs', 'proyectos')
|
|
BITACORAS_DIR = File.join(PROJECT_ROOT, 'docs', 'bitacoras')
|
|
LOGS_DIR = File.join(BITACORAS_DIR, '_hist')
|
|
|
|
# Directorios de herramientas
|
|
TOOLS_DIR = File.join(PROJECT_ROOT, 'adn', 'tools')
|
|
SEGURIDAD_DIR = File.join(TOOLS_DIR, 'seguridad')
|
|
|
|
# Bóveda
|
|
CANDADOS_PATH = File.join(SEGURIDAD_DIR, 'ns8-candados.rb')
|
|
end
|