Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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
Example #5
0
 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
Example #6
0
 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
Example #7
0
 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