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, 7 Dec 2019 21:53:43 +0000 (21:53 +0000)
commita97099467dab9bf81f4958c767211b43504c90d9
tree7f92ca4829fb5452462ed32283730c91909a4d8d
parent6bc08f0639f5c5072d2e0cbabec48a08db542666
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