예제 #1
0
 def help():
     # rgio.prompt("rg  <dev cmd>   [-m <message>] ")
     rgio.prompt("rg  <svc cmd> [-e <env>] [-s <system>] [-c <run.yaml>]")
     # rgio.prompt("rg  <svc cmd>   [-e <env>]     [-s <system>]   [-x <resource>]  [-f <script>]    [-v <vardef>]")
     # rgio.prompt("rg  <pub cmd>   [-p <project>] [-l <publish plan> ]  [-h [@|%]<host>] [-t [@]<tag>] [-z <rguser> ]")
     # rgio.prompt("rg  <batch cmd> [-p <project>] [-l <publish plan> ]  [-h [@|%]<host>] [-t [@]<tag>] [-z <rguser> ]")
     rgio.prompt("\ncommon args : [-d <level> ]\n")
예제 #2
0
    def _usage(self):
        if hasattr(self,"__doc__") and self.__doc__ is not None:
            rgio.prompt(str(self.__doc__))
        else:
            rgio.prompt("%s has no more info" % self.__class__)

        pass
예제 #3
0
 def help():
     # rgio.prompt("rg  <dev cmd>   [-m <message>] ")
     rgio.prompt("rg  <svc cmd> [-e <env>] [-s <system>] [-c <run.yaml>]")
     # rgio.prompt("rg  <svc cmd>   [-e <env>]     [-s <system>]   [-x <resource>]  [-f <script>]    [-v <vardef>]")
     # rgio.prompt("rg  <pub cmd>   [-p <project>] [-l <publish plan> ]  [-h [@|%]<host>] [-t [@]<tag>] [-z <rguser> ]")
     # rgio.prompt("rg  <batch cmd> [-p <project>] [-l <publish plan> ]  [-h [@|%]<host>] [-t [@]<tag>] [-z <rguser> ]")
     rgio.prompt("\ncommon args : [-d <level> ]\n")
예제 #4
0
    def load(data_file):
        rargs = run_args()
        if os.path.exists(data_file):
            try:
                with open(data_file, 'r') as f:
                    rargs = pickle.load(f)
            except Exception as e:
                rgio.prompt("load rigger file fail!")

        rargs.clear()
        return rargs
예제 #5
0
    def load(data_file):
        rargs     = run_args()
        if os.path.exists(data_file):
            try:
                with open(data_file,'r')  as f:
                    rargs = pickle.load(f)
            except Exception as  e :
                rgio.prompt("load rigger file fail!")

        rargs.clear()
        return rargs
예제 #6
0
    def load(dfile=None):
        rargs     = run_args()
        data_file = dfile
        if data_file is None :
            data_file = rargs.rg.save_path
        if os.path.exists(data_file):
            try:
                with open(data_file,'r')  as f:
                    rargs = pickle.load(f)
            except Exception as  e :
                rgio.prompt("load rigger file fail!")

        rargs.clear()
        return rargs
예제 #7
0
파일: rg_args.py 프로젝트: znavy/rigger-ng
    def load(dfile=None):
        rargs = run_args()
        data_file = dfile
        if data_file is None:
            data_file = rargs.rg.save_path
        if os.path.exists(data_file):
            try:
                with open(data_file, 'r') as f:
                    rargs = pickle.load(f)
            except Exception as e:
                rgio.prompt("load rigger file fail!")

        rargs.clear()
        return rargs
예제 #8
0
 def update_ver(self):
     old_ver = self.info()
     chose_update_version="plese chose  working(w), fixbug(b), add feature(f) , struct revolution(s)  ?"
     print(chose_update_version)
     recomTag   = False
     needCommit = False
     chose      = sys.stdin.read(1)
     if chose == "w":
         self.up_commit()
         pass
     if chose == "b":
         self.up_bugfix()
         self.up_commit()
     if chose == "f":
         self.up_feature()
         self.up_commit()
     if chose == "s":
         self.up_struct()
         self.up_commit()
     self.save()
     rgio.prompt("version updated : [$OLD] ---> [$NEW]",OLD=old_ver,NEW=self.info())
예제 #9
0
 def update_ver(self):
     old_ver = self.info()
     chose_update_version = "plese chose  working(w), fixbug(b), add feature(f) , struct revolution(s)  ?"
     print(chose_update_version)
     recomTag = False
     needCommit = False
     chose = sys.stdin.read(1)
     if chose == "w":
         self.up_commit()
         pass
     if chose == "b":
         self.up_bugfix()
         self.up_commit()
     if chose == "f":
         self.up_feature()
         self.up_commit()
     if chose == "s":
         self.up_struct()
         self.up_commit()
     self.save()
     rgio.prompt("version updated : [$OLD] ---> [$NEW]",
                 OLD=old_ver,
                 NEW=self.info())
예제 #10
0
 def help():
     rgio.prompt("rg  <svc cmd> [-e <env>] [-s <system>] [-c <run.yaml>] ")
     rgio.prompt("\ncommon args : [-d <level> ]\n")
예제 #11
0
파일: rg_args.py 프로젝트: znavy/rigger-ng
 def help():
     rgio.prompt("rg  <svc cmd> [-e <env>] [-s <system>] [-c <run.yaml>] ")
     rgio.prompt("\ncommon args : [-d <level> ]\n")