Пример #1
0
    def __init__(self, *a, **kw):
        self.db = kw.pop("task_db", None)
        RhumbaPlugin.__init__(self, *a, **kw)

        if self.db is None:
            self.db = task_db.SideloaderDB()

        self.local_path = self.config.get("localdir", os.path.join(os.path.dirname(sys.argv[0]), "../.."))
        self.buildpack = os.path.join(self.local_path, "bin/build_package")

        self.sl_config = yaml.load(open(os.path.join(self.local_path, "config.yaml")))

        self.workspace = self.sl_config.get("workspace_base", "/workspace")

        self.build_locks = {}
Пример #2
0
    def __init__(self, *a, **kw):
        self.db = kw.pop('task_db', None)
        RhumbaPlugin.__init__(self, *a, **kw)

        if self.db is None:
            self.db = task_db.SideloaderDB()

        self.local_path = self.config.get(
            'localdir', os.path.join(os.path.dirname(sys.argv[0]), '../..'))
        self.buildpack = os.path.join(self.local_path, 'bin/build_package')

        self.sl_config = yaml.load(
            open(os.path.join(self.local_path, 'config.yaml')))

        self.workspace = self.sl_config.get('workspace_base', '/workspace')

        self.build_locks = {}
Пример #3
0
    def __init__(self, *a):
        RhumbaPlugin.__init__(self, *a)

        self.db = task_db.SideloaderDB()

        self.build_locks = {}