def make_runner(self, tasks, redis=None, pattern="*"): if redis is None: redis = self.mk_redis_config() args = tasks + [redis, pattern] options = Options() options.parseOptions(args) runner = TaskRunner(options) runner.redis._purge_all() # Make sure we start fresh. runner.stdout = StringIO.StringIO() return runner
def mk_opts_raw(self, args): opts = Options() opts.parseOptions(args) return opts