def bootstrap(self, **kw): self.info('---------------------------------------------') self.info('----------- Bootstrapping Firmware -----------') self.info('---------------------------------------------') from pychron.furnace.firmware.manager import FirmwareManager from pychron.furnace.firmware.server import FirmwareServer self.manager = FirmwareManager() self.manager.bootstrap(**kw) self.server = FirmwareServer(manager=self.manager) self.server.bootstrap(**kw)
class Firmware(HeadlessLoggable): manager = None server = None def bootstrap(self, **kw): self.info('---------------------------------------------') self.info('----------- Bootstrapping Firmware -----------') self.info('---------------------------------------------') from pychron.furnace.firmware.manager import FirmwareManager from pychron.furnace.firmware.server import FirmwareServer self.manager = FirmwareManager() self.manager.bootstrap(**kw) self.server = FirmwareServer(manager=self.manager) self.server.bootstrap(**kw)