예제 #1
0
 def __init__(self):
     self.task_list      = []
     self.cleanup_dirs   = []
     self.helpers        = helpers()
     self.changes        = changes()
     self.scm_object     = None
     self.data_map       = None
 def test_safe_run_exception(self):
     h = helpers()
     self.assertRaisesRegexp(
         SystemExit,
         re.compile("Command failed\(1\): ''"),
         h.safe_run,
         "/bin/false",
         cwd=None,
     )
예제 #3
0
 def test_safe_run_exception(self):
     h = helpers()
     self.assertRaisesRegexp(
         SystemExit,
         re.compile("Command failed\(1\): ''"),
         h.safe_run,
         "/bin/false",
         cwd=None,
     )
예제 #4
0
    def __init__(self, args, task):
        # default settings
        self.scm = self.__class__.__name__
        # arch_dir - Directory which is used for the archive
        # e.g. myproject-2.0
        self.arch_dir = None
        self.repocachedir = None
        self.clone_dir = None
        self.lock_file = None

        # mandatory arguments
        self.args = args
        self.task = task
        self.url = args.url

        # optional arguments
        self.revision = args.revision

        # preparation of required attributes
        self.helpers = helpers()
        if self.args.changesgenerate:
            self.changes = changes()

        self._calc_repocachedir()
예제 #5
0
    def __init__(self,args,task):
        # default settings
        self.scm            = self.__class__.__name__
        # arch_dir - Directory which is used for the archive
        # e.g. myproject-2.0
        self.arch_dir            = None
        self.repocachedir   = None
        self.clone_dir      = None
        self.lock_file      = None

        # mandatory arguments
        self.args           = args
        self.task           = task
        self.url            = args.url

        # optional arguments
        self.revision       = args.revision

        # preparation of required attributes
        self.helpers        = helpers()
        if self.args.changesgenerate:
            self.changes    = changes()

        self._calc_repocachedir()
 def __init__(self):
     self.helpers        = helpers()
     self.archivefile    = None
     self.metafile       = None
예제 #7
0
 def __init__(self):
     self.task_list      = []
     self.cleanup_dirs   = []
     self.helpers        = helpers()
     self.changes        = changes()
     self.scm_object     = None