2018-11-13 21:55:59 +01:00
|
|
|
"""WordOps base controller."""
|
|
|
|
|
|
|
|
|
|
from cement.core.controller import CementBaseController, expose
|
2019-09-23 15:43:23 +02:00
|
|
|
|
2019-10-02 13:13:32 +02:00
|
|
|
from wo.core.variables import WOVar
|
2019-09-23 15:43:23 +02:00
|
|
|
|
2019-10-02 13:13:32 +02:00
|
|
|
VERSION = WOVar.wo_version
|
2018-11-13 21:55:59 +01:00
|
|
|
|
|
|
|
|
BANNER = """
|
|
|
|
|
WordOps v%s
|
2023-12-01 16:41:14 +01:00
|
|
|
Copyright (c) 2024 WordOps.
|
2018-11-13 21:55:59 +01:00
|
|
|
""" % VERSION
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class WOBaseController(CementBaseController):
|
|
|
|
|
class Meta:
|
|
|
|
|
label = 'base'
|
2019-04-05 10:02:20 +02:00
|
|
|
description = ("An essential toolset that eases WordPress "
|
feat: convert WordOps from Nginx to OpenLiteSpeed + LSPHP + LSCache
Complete conversion of the WordOps stack from Nginx + PHP-FPM to
OpenLiteSpeed + LSPHP + LSCache. This is a full rewrite across all 7
phases of the codebase:
- Foundation: OLS paths, variables, services, removed pynginxconfig dep
- Templates: 11 new OLS mustache templates, removed nginx-specific ones
- Stack: stack_pref, stack, stack_services, stack_upgrade, stack_migrate
- Site: site_functions, site, site_create, site_update
- Plugins: debug, info, log, clean rewritten for OLS
- SSL/ACME: acme.sh deploy uses lswsctrl, OLS vhssl blocks
- Other: secure, backup, clone, install script
Additional features:
- Debian 13 (trixie) support
- PHP 8.5 support
- WP Fort Knox mu-plugin integration (wo secure --lockdown/--unlock)
- --nginx CLI flag preserved for backward compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:55:16 +01:00
|
|
|
"site and server administration with OpenLiteSpeed")
|
2018-11-13 21:55:59 +01:00
|
|
|
arguments = [
|
|
|
|
|
(['-v', '--version'], dict(action='version', version=BANNER)),
|
2019-04-05 10:02:20 +02:00
|
|
|
]
|
2018-11-13 21:55:59 +01:00
|
|
|
|
|
|
|
|
@expose(hide=True)
|
|
|
|
|
def default(self):
|
|
|
|
|
self.app.args.print_help()
|