Exemplo n.º 1
0
        def check_cmd_data(q):
            from bentomakerlib.bentomaker \
                import \
                    CMD_DATA_DUMP
            from bento.utils.utils \
                import \
                    read_or_create_dict

            cmd_data_db = self.build_node.find_node(CMD_DATA_DUMP)
            if cmd_data_db is None:
                raise IOError()
            cmd_data_store = read_or_create_dict(cmd_data_db.abspath())
            q.put(cmd_data_store.get("configure", []))
Exemplo n.º 2
0
        def check_cmd_data(q):
            from bentomakerlib.bentomaker \
                import \
                    CMD_DATA_DUMP
            from bento.utils.utils \
                import \
                    read_or_create_dict

            cmd_data_db = self.build_node.find_node(CMD_DATA_DUMP)
            if cmd_data_db is None:
                raise IOError()
            cmd_data_store = read_or_create_dict(cmd_data_db.abspath())
            q.put(cmd_data_store.get("configure", []))
Exemplo n.º 3
0
    def __init__(self, command_data_db, commands_registry=None, contexts_registry=None,
            options_registry=None, commands_scheduler=None):
        self._commands_registry = commands_registry or CommandRegistry()
        self._contexts_registry = contexts_registry or ContextRegistry()
        self._options_registry = options_registry or OptionsRegistry()
        self._scheduler = commands_scheduler or CommandScheduler()
        self._hooks_registry = HookRegistry()

        self.backend = None
        self._package_options = None

        self._command_data_db = command_data_db
        if command_data_db is None:
            self._command_data_store = {}
        else:
            self._command_data_store = read_or_create_dict(command_data_db.abspath())
Exemplo n.º 4
0
    def __init__(self,
                 command_data_db,
                 commands_registry=None,
                 contexts_registry=None,
                 options_registry=None,
                 commands_scheduler=None):
        self._commands_registry = commands_registry or CommandRegistry()
        self._contexts_registry = contexts_registry or ContextRegistry()
        self._options_registry = options_registry or OptionsRegistry()
        self._scheduler = commands_scheduler or CommandScheduler()
        self._hooks_registry = HookRegistry()

        self.backend = None
        self._package_options = None

        self._command_data_db = command_data_db
        if command_data_db is None:
            self._command_data_store = {}
        else:
            self._command_data_store = read_or_create_dict(
                command_data_db.abspath())