From 74684381a6196d3c3e2125c5a96a384465447e56 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 29 Apr 2025 11:50:45 +0200 Subject: [PATCH] add sehistory and seweb --- __init__.py | 3 ++- getsestuff | 8 +++++++- sehistoryman.py | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 sehistoryman.py diff --git a/__init__.py b/__init__.py index ea1e857..2d15424 100644 --- a/__init__.py +++ b/__init__.py @@ -32,12 +32,13 @@ from servicemanager.nicosman import NicosManager from servicemanager.seaman import SeaManager from servicemanager.frappyman import FrappyManager, Reconnect, Keep from servicemanager.sewebman import SewebManager +from servicemanager.sehistoryman import SehistoryManager #from servicemanager.racks import RackConfig #rack = RackConfig() -all = NicosManager, FrappyManager, SeaManager, SewebManager +all = NicosManager, FrappyManager, SeaManager, SewebManager, SehistoryManager KINDS = 'action', 'ins', 'service' diff --git a/getsestuff b/getsestuff index 2c62f20..56ed67c 100755 --- a/getsestuff +++ b/getsestuff @@ -316,6 +316,12 @@ def do_sehistory(): do('git pull') +def do_seweb(): + """SE web client""" + if check_repo(home, 'seweb', None, 'master'): + do('git pull') + + def do_sea(): """SEA server scripts""" if check_repo(home, 'sea', 'gitlab'): @@ -551,7 +557,7 @@ else: for a in nc_actions: ncactionfuncs[a] = locals()['do_%s' % a] actions = ['ssh', 'bin', 'scfg', 'frappy', 'servicemanager', 'sea', - 'calcurves', 'sehistory'] + 'calcurves', 'sehistory', 'seweb'] actionfuncs = {} for a in actions: diff --git a/sehistoryman.py b/sehistoryman.py new file mode 100644 index 0000000..0642e40 --- /dev/null +++ b/sehistoryman.py @@ -0,0 +1,38 @@ +# ***************************************************************************** +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Module authors: +# Markus Zolliker +# +# ***************************************************************************** + +from servicemanager.base import ServiceManager + + +class SehistoryManager(ServiceManager): + group = 'sehistory' + services = ('sehistory',) + USAGE = """ + Usage: + + sehistory start + sehistory restart + sehistory stop + sehistory list [] + + %s + """ +