def sendMessage(self): config = ConfigHolder.configFileToDict(self.options.configFile) configHolder = ConfigHolder(self.options.__dict__, config) if self.options.imageid: ImageIdPublisher(self.msg_message, self.options.imageid, configHolder).publish() else: SingleMessagePublisher(self.msg_message, configHolder).publish()
def _loadConfiguration(self): return ConfigHolder.configFileToDict(self._findConfigFile())