예제 #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