コード例 #1
0
ファイル: inner.py プロジェクト: dzhcool/rigger-ng
 def _allow(self,context):
     if self._limit is not None :
         for env in self._limit['envs'].split(","):
             if context.have_env(env)  and context.passwd != self._limit['passwd']:
                 rgio.struct_out("[ignore system] %s" %(self._name))
                 return False
     return True
コード例 #2
0
 def _allow(self, context):
     if self._limit is not None:
         for env in self._limit['envs'].split(","):
             if context.have_env(
                     env) and context.passwd != self._limit['passwd']:
                 rgio.struct_out("[ignore system] %s" % (self._name))
                 return False
     return True
コード例 #3
0
ファイル: inner.py プロジェクト: ayibang-openlab/rigger-ng
 def _info(self,context):
     items = self.__dict__
     rgio.struct_out("vars:")
     for name , val in   items.items():
         if re.match(r'__.+__',name):
             continue
         name= name.upper()
         rgio.struct_out("%-15s = %s" %(name,val),1)
コード例 #4
0
 def _info(self, context):
     items = self.__dict__
     rgio.struct_out("vars:")
     for name, val in items.items():
         if re.match(r'__.+__', name):
             continue
         name = name.upper()
         rgio.struct_out("%-15s = %s" % (name, val), 1)
コード例 #5
0
ファイル: inner.py プロジェクト: wangzengzhi/rigger-ng
 def _info(self,context,level):
     rgio.struct_out("rg: %s" %(self._name))
     interface.control_box._info(self,context,level)
コード例 #6
0
ファイル: mysql.py プロジェクト: dzhcool/rigger-ng
 def _info(self,context,level):
     if  level  <= 0  :
         return 
     rgio.struct_out("mysql: %s" %(self.name))
コード例 #7
0
ファイル: files.py プロジェクト: sunxiaojun2014/rigger-ng
 def _info(self,context):
     rgio.struct_out("link")
     rgio.struct_out("src: " + self.src,1)
     rgio.struct_out("dst: " + self.dst,1)
コード例 #8
0
ファイル: files.py プロジェクト: sunxiaojun2014/rigger-ng
 def _info(self,context):
     rgio.struct_out("file_tpl")
     rgio.struct_out("tpl: %s" %self.tpl ,1)
     rgio.struct_out("dst: %s" %self.dst ,1)
コード例 #9
0
ファイル: files.py プロジェクト: sunxiaojun2014/rigger-ng
 def _info(self,context):
     rgio.struct_out("path :" )
     for path in self.paths:
         rgio.struct_out("%s" %path,1 )
コード例 #10
0
 def _info(self, context, level):
     if level <= 0:
         return
     rgio.struct_out("file_tpl")
     rgio.struct_out("tpl: %s" % self.tpl, 1)
     rgio.struct_out("dst: %s" % self.dst, 1)
コード例 #11
0
ファイル: files.py プロジェクト: dzhcool/rigger-ng
 def _info(self,context,level):
     if  level  <= 0  :
         return 
     rgio.struct_out("path :" )
     for path in self.paths:
         rgio.struct_out("%s" %path,1 )
コード例 #12
0
 def _info(self, context, level):
     if level <= 0:
         return
     rgio.struct_out("modul : %s" % (self._name))
     interface.control_box._info(self, context, level)
コード例 #13
0
ファイル: mysql.py プロジェクト: znavy/rigger-ng
 def _info(self, context, level):
     if level <= 0:
         return
     rgio.struct_out("mysql: %s" % (self.name))
コード例 #14
0
 def _info(self, context):
     rgio.struct_out("modul : %s" % (self._name))
     interface.control_box._info(self, context)
コード例 #15
0
ファイル: files.py プロジェクト: dzhcool/rigger-ng
 def _info(self,context,level):
     if  level  <= 0  :
         return 
     rgio.struct_out("link")
     rgio.struct_out("src: " + self.src,1)
     rgio.struct_out("dst: " + self.dst,1)
コード例 #16
0
ファイル: files.py プロジェクト: dzhcool/rigger-ng
 def _info(self,context,level):
     if  level  <= 0  :
         return 
     rgio.struct_out("file_tpl")
     rgio.struct_out("tpl: %s" %self.tpl ,1)
     rgio.struct_out("dst: %s" %self.dst ,1)
コード例 #17
0
ファイル: inner.py プロジェクト: wangzengzhi/rigger-ng
 def _info(self,context,level):
     if  level  <= 0  :
         return 
     rgio.struct_out("modul : %s" %(self._name))
     interface.control_box._info(self,context,level)
コード例 #18
0
ファイル: inner.py プロジェクト: ayibang-openlab/rigger-ng
 def _info(self,context):
     rgio.struct_out("env: %s" %(self._name))
     interface.control_box._info(self,context)
コード例 #19
0
ファイル: rg_cmd_prj.py プロジェクト: dzhcool/rigger-ng
 def _execute(self,rargs):
     rgio.struct_out("rg %s" %(rargs) )
     rgio.struct_out("")
     self.runcmd(rargs,lambda x , y : x._info(y,self.level))
コード例 #20
0
 def _info(self, context, level):
     if level <= 0:
         return
     rgio.struct_out("copy")
     rgio.struct_out("src: " + self.src, 1)
     rgio.struct_out("dst: " + self.dst, 1)
コード例 #21
0
 def _info(self, context, level):
     rgio.struct_out("env: %s" % (self._name))
     interface.control_box._info(self, context, level)
コード例 #22
0
ファイル: mysql.py プロジェクト: ayibang-openlab/rigger-ng
 def _info(self,context):
     rgio.struct_out("mysql: %s" %(self.name))
コード例 #23
0
 def _execute(self, rargs):
     rgio.struct_out("rg %s" % (rargs))
     rgio.struct_out("")
     self.runcmd(rargs, lambda x, y: x._info(y))
コード例 #24
0
 def _info(self, context, level):
     if level <= 0:
         return
     rgio.struct_out("path :")
     for path in self.paths:
         rgio.struct_out("%s" % path, 1)