コード例 #1
0
    def __new__(cls, name, bases, attrs):
        # Extra hg commands
        commands = attrs.get('commands', { })

        for cmd_name, command in cls._default_commands.items() + commands.items():
            attrs[cmd_name] = cls._create_hg_command(command)

        return ParallelNodeBase.__new__(cls, name, bases, attrs)
コード例 #2
0
ファイル: git.py プロジェクト: jgeskens/python-deployer
    def __new__(cls, name, bases, attrs):
        # Extra git commands
        commands = attrs.get('commands', { })

        for cmd_name, command in cls._default_commands.items() + commands.items():
            attrs[cmd_name] = cls._create_git_command(command,
                                        ignore_exit_status=command in cls._ignore_exit_status)

        return ParallelNodeBase.__new__(cls, name, bases, attrs)
コード例 #3
0
ファイル: git.py プロジェクト: trubachoff/python-deployer
    def __new__(cls, name, bases, attrs):
        # Extra git commands
        commands = attrs.get('commands', { })

        for cmd_name, command in cls._default_commands.items() + commands.items():
            attrs[cmd_name] = cls._create_git_command(command,
                                        ignore_exit_status=command in cls._ignore_exit_status)

        return ParallelNodeBase.__new__(cls, name, bases, attrs)