chiark / gitweb /
make-secnet-sites: Refactor operational code into OpModes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Dec 2019 16:19:23 +0000 (16:19 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:53 +0000 (21:56 +0000)
commitedbccac5769019cb3d2c618bf50a2ea71f7d4716
treed2a8fb35d282069f95e10b33c42f8179af48fd8f
parent3cf8b67a5ec9157915fe823f173c07cbd897495f
make-secnet-sites: Refactor operational code into OpModes

Everywhere we had conditionals on `service', move the two arms of the
if into methods on OpConf and OpUserv (of which we make one
singleton).

Many global variables become instance variables on the OpMode object.

The read_in method of OpConf is in OpBase because we are going to want
to reuse it.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites