def cert(self): cert = self._config._yml.get('source', {}).get('rabbitmq', {}).get('cert', None) if cert is None: raise BaseSourceException( "No Cert specified 'source/rabbitmq/cert'") return cert
def queue(self): queue = self._config._yml.get('source', {}).get('rabbitmq', {}).get('queue', None) if queue is None: raise BaseSourceException( "No queue specified 'source/rabbitmq/queue'") return queue
def routing_key(self): rk = self._config._yml.get('source', {}).get('rabbitmq', {}).get('bind', None) if rk is None: raise BaseSourceException( "No `Bind` (routing key) specified 'source/rabbitmq/bind'") return rk
def exchange(self): ex = self._config._yml.get('source', {}).get('rabbitmq', {}).get('exchange', None) if ex is None: raise BaseSourceException( "No Exchange specified 'source/rabbitmq/exchange'") return ex
def uri(self): uri = self._config._yml.get('source', {}).get('rabbitmq', {}).get('uri', None) if uri is None: raise BaseSourceException("No URI specified 'source/rabbitmq/uri'") return uri
def key(self): key = self._config._yml.get('source', {}).get('rabbitmq', {}).get('key', None) if key is None: raise BaseSourceException("No Key specified 'source/rabbitmq/key'") return key
def source(self): source = self.config.get_kv('source/folder_watch/source', None) if source is None: raise BaseSourceException( "No `source` specified 'source/folder_watch/source'") return source