Пример #1
0
    def set_formatter(cls, formatter_name="terminal256"):
        """Set the formatter to use for the output

        :param formatter_name: the name of the Pygments formatter
        :type formatter_name: str
        """

        Config.set("core.formatter", formatter_name)
Пример #2
0
    def set_host(cls, host):
        """Set the Gerrit Code Review server host name

        :param host: the server's host
        :type host: str
        """

        Config.set('gerrit.host', host)
Пример #3
0
    def set_formatter(cls, formatter_name='terminal256'):
        """Set the formatter to use for the output

        :param formatter_name: the name of the Pygments formatter
        :type formatter_name: str
        """

        Config.set('core.formatter', formatter_name)
Пример #4
0
    def set_host(cls, host):
        """Set the Gerrit Code Review server host name

        :param host: the server's host
        :type host: str
        """

        Config.set("gerrit.host", host)
Пример #5
0
    def set_host(cls, host):
        """Set the Gerrit Code Review server host name.

        PARAMETERS
            host: the server's host
        """

        Config.set('gerrit.host', host)
Пример #6
0
    def set_formatter(cls, formatter_name='terminal256'):
        """
        Set the formatter to use for the output.

        PARAMETERS
            formatter_name: the name of the Pygments formatter
        """

        Config.set('core.formatter', formatter_name)
Пример #7
0
    def set_unsecure_connection(cls, unsecure):
        """If True, requests will be made over HTTP instead of HTTPS

        Always use HTTPS by default.

        :param unsecure: True to use HTTP
        :type unsecure: bool
        """

        Config.set('gerrit.unsecure', unsecure)
Пример #8
0
    def set_unsecure_connection(cls, unsecure):
        """If True, requests will be made over HTTP instead of HTTPS

        Always use HTTPS by default.

        :param unsecure: True to use HTTP
        :type unsecure: bool
        """

        Config.set("gerrit.unsecure", unsecure)
Пример #9
0
    def set_unsecure_connection(cls, unsecure):
        """If True, requests will be made over HTTP instead of HTTPS.

        Always use HTTPS by default.

        PARAMETERS
            unsecure: True to use HTTP
        """

        Config.set('gerrit.unsecure', unsecure)
Пример #10
0
    def set_auth_token(cls, username, password=None):
        """Set the authentication pair to use for HTTP requests

        :param username: the account username
        :type username: str
        :param password: the account HTTP password
        :type password: str
        """

        Config.set('gerrit.username', username)
        Config.set('gerrit.password', password)
Пример #11
0
    def set_auth_token(cls, username, password=None):
        """Set the authentication pair to use for HTTP requests

        :param username: the account username
        :type username: str
        :param password: the account HTTP password
        :type password: str
        """

        Config.set("gerrit.username", username)
        Config.set("gerrit.password", password)
Пример #12
0
    def set_auth_token(cls, username, password=None):
        """
        Set the authentication pair to use for HTTP requests.

        PARAMETERS
            username: the account username
            password: the account HTTP password
        """

        Config.set('gerrit.username', username)
        Config.set('gerrit.password', password)