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