def conf(self): if self._conf is None: self._conf = self.args.conf or tools.find_conf() if self._conf is None: raise ProjectNotFoundError( 'unable to locate dataplicity.conf for project') return self._conf
def make_client(self, log): if self.args.conf: path = self.args.conf path = tools.find_conf() if path is None: raise ProjectNotFoundError('unable to locate dataplicity.conf for project') client = Client(path, log=log) return client
def run(self): args = self.args #client = self.app.make_client(None) conf_path = args.conf or tools.find_conf() dataplicity_path = dirname(conf_path) do_build(dataplicity_path)
def make_client(self, log): if self.args.conf: path = self.args.conf path = tools.find_conf() if path is None: raise ProjectNotFoundError( 'unable to locate dataplicity.conf for project') client = Client(path, log=log) return client
def make_client(self, log, conf=None, create_m2m=True): if self.args.conf: path = self.args.conf elif conf: path = conf else: path = tools.find_conf() if path is None: raise ProjectNotFoundError('unable to locate dataplicity.conf for project') client = Client(path, log=log, create_m2m=create_m2m, rpc_url=self.args.server_url) return client
def conf(self): if self._conf is None: self._conf = self.args.conf or tools.find_conf() if self._conf is None: raise ProjectNotFoundError('unable to locate dataplicity.conf for project') return self._conf