[P2606] WebServer NGINX: plan actualizado, ficha nodo, HTTPS operativo
- P2606: Plan v1.1 EN EJECUCIÓN. Fases 1-3 completadas. - Ficha nodo srvv-nginx-rm.md. P2606 en adn/07_proyectos.md. - Incluye cambios acumulados de sesiones anteriores.
This commit is contained in:
@@ -0,0 +1,179 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ADN
|
||||
module PlantillasEventos
|
||||
def self.existe?(tipo)
|
||||
plantillas.key?(tipo)
|
||||
end
|
||||
|
||||
def self.obtener(tipo)
|
||||
plantillas[tipo]
|
||||
end
|
||||
|
||||
def self.lista_tipos
|
||||
plantillas.keys
|
||||
end
|
||||
|
||||
def self.lista_con_iconos
|
||||
{
|
||||
"implementacion" => "🔧",
|
||||
"investigacion" => "🔍",
|
||||
"resolucion" => "🛠️",
|
||||
"documentacion" => "📝",
|
||||
"reunion" => "👥",
|
||||
"test" => "✅",
|
||||
"debug" => "🐛",
|
||||
"planificacion" => "📋",
|
||||
"migracion" => "🔄",
|
||||
"renombramiento" => "✏️",
|
||||
"backup" => "🛡️"
|
||||
}
|
||||
end
|
||||
|
||||
def self.plantillas
|
||||
{
|
||||
"implementacion" => template_implementacion,
|
||||
"investigacion" => template_investigacion,
|
||||
"resolucion" => template_resolucion,
|
||||
"documentacion" => template_documentacion,
|
||||
"reunion" => template_reunion,
|
||||
"test" => template_test,
|
||||
"debug" => template_debug,
|
||||
"planificacion" => template_planificacion,
|
||||
"migracion" => template_migracion,
|
||||
"renombramiento" => template_renombramiento,
|
||||
"backup" => template_backup
|
||||
}
|
||||
end
|
||||
|
||||
def self.template_implementacion
|
||||
<<~MD
|
||||
🔧 **Implementación**
|
||||
|
||||
- **Contexto**:
|
||||
- **Acción**:
|
||||
- **Resultado**:
|
||||
|
||||
```bash
|
||||
# código
|
||||
```
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_investigacion
|
||||
<<~MD
|
||||
🔍 **Investigación**
|
||||
|
||||
- **Problema**:
|
||||
- **Hallazgos**:
|
||||
- **Conclusión**:
|
||||
- **Refs**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_resolucion
|
||||
<<~MD
|
||||
🛠️ **Resolución**
|
||||
|
||||
- **Síntoma**:
|
||||
- **Causa**:
|
||||
- **Solución**:
|
||||
- **Verificación**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_documentacion
|
||||
<<~MD
|
||||
📝 **Documentación**
|
||||
|
||||
- **Qué**:
|
||||
- **Ubicación**:
|
||||
- **Cambios**:
|
||||
- **Impacto**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_reunion
|
||||
<<~MD
|
||||
👥 **Reunión**
|
||||
|
||||
- **Participantes**:
|
||||
- **Temas**:
|
||||
- **Acuerdos**:
|
||||
- **Acciones**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_test
|
||||
<<~MD
|
||||
✅ **Test**
|
||||
|
||||
- **Qué se probó**:
|
||||
- **Resultado**:
|
||||
- **Pasos**:
|
||||
- **Conclusión**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_debug
|
||||
<<~MD
|
||||
🐛 **Debug**
|
||||
|
||||
- **Error**:
|
||||
- **Diagnóstico**:
|
||||
- **Solución**:
|
||||
- **Verificación**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_planificacion
|
||||
<<~MD
|
||||
📋 **Planificación**
|
||||
|
||||
- **Objetivo**:
|
||||
- **Fases**:
|
||||
- **Recursos**:
|
||||
- **Próximo**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_migracion
|
||||
<<~MD
|
||||
🔄 **Migración**
|
||||
|
||||
- **Origen**:
|
||||
- **Destino**:
|
||||
- **Componentes**:
|
||||
- **Precauciones**:
|
||||
- **Rollback**:
|
||||
- **Verificación**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_renombramiento
|
||||
<<~MD
|
||||
✏️ **Renombramiento**
|
||||
|
||||
- **Anterior**:
|
||||
- **Nuevo**:
|
||||
- **Tipo**: Nodo/Archivo/Host
|
||||
- **Ubicación**:
|
||||
- **Referencias actualizadas**:
|
||||
- **Verificación**:
|
||||
MD
|
||||
end
|
||||
|
||||
def self.template_backup
|
||||
<<~MD
|
||||
🛡️ **Backup**
|
||||
|
||||
- **Origen**:
|
||||
- **Tipo**: VZDump/Export/Dump
|
||||
- **Destino**:
|
||||
- **Tamaño**:
|
||||
- **Verificación**:
|
||||
- **Restauración**:
|
||||
MD
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user