def pull(self):
    LOG.info('{}: {}'.format(crayons.yellow('pulling information from the source'), self.source_name))
    try:
        driver = getattr(importlib.import_module('cinfo.drivers.{}'.format(self.source['type'])), self.source['type'].capitalize())()
    except KeyError:
        LOG.error('{}: {}...exiting'.format(crayons.red('No such source'), self.source))
        sys.exit(2)
    self.data = driver.pull(self.source['url'], jobs=self.source['jobs'])
    if (not self.data):
        LOG.warning('{}'.format(crayons.red("I've pulled nothing! outrageous!")))
    self.write(self.data)
def pull(self):
    LOG.info('{}: {}'.format(crayons.yellow('pulling information from the source'), self.source_name))
    try:
        driver = getattr(importlib.import_module('cinfo.drivers.{}'.format(self.source['type'])), self.source['type'].capitalize())()
    except KeyError:
        LOG.error('{}: {}...exiting'.format(crayons.red('No such source'), self.source))
        sys.exit(2)
    self.data = driver.pull(self.source['url'], jobs=self.source['jobs'])
    if (not self.data):
        LOG.warning('{}'.format(crayons.red("I've pulled nothing! outrageous!")))
    self.write(self.data)