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>
Mon, 30 Dec 2019 13:15:50 +0000 (13:15 +0000)
commitb5ba32a5a02d4cb40c1308f15c44ce92bbebccb3
tree2e42fd692ec62750dd823abfae827eb510d35402
parent8626857cbe7ea5706069501344fbb97548036d4b
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