Пример #1
0
    def __init__(self, root=None, config=None, print_results=True):
        """ Main class init function.

        @param root: string, root path to use
        """
        CliBase.__init__(self)
        self.root = root or "/"
        self.config = config or GKeysConfig(root=root)
        self.config.options['print_results'] = print_results
        self.cli_config = {
            'Actions':
            Actions,
            'Available_Actions':
            Available_Actions,
            'Action_Map':
            Action_Map,
            'Base_Options': [],
            'prog':
            'gkeys',
            'description':
            'Gentoo-keys manager program',
            'epilog':
            '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!'''
        }
        self.version = __version__
Пример #2
0
    def __init__(self, root=None, config=None, print_results=True):
        """ Main class init function.

        @param root: string, root path to use
        """
        CliBase.__init__(self)
        self.root = root or "/"
        self.config = config or GKeysConfig(root=root)
        self.config.options['print_results'] = print_results
        self.cli_config = {
            'Actions':
            Actions,
            'Available_Actions':
            Available_Actions,
            'Action_Map':
            Action_Map,
            'Base_Options':
            Available_Actions[:],
            'prog':
            'gkeys-gpg',
            'description':
            'Gentoo-keys gpg command wrapper',
            'epilog':
            '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!'''
        }
        self.cli_config['Base_Options'].extend(
            ["armor", "clearsign", "dash", "detachsign", "statusfd", "user"])
        self.cli_config['Base_Options'].extend(KEY_OPTIONS)
        self.cli_config['Base_Options'].extend(["category"])
        self.version = __version__
        self.need_Action = False
Пример #3
0
    def __init__(self, root=None, config=None, print_results=True):
        """ Main class init function.

        @param root: string, root path to use
        """
        CliBase.__init__(self)
        self.root = root or "/"
        self.config = config or GKeysConfig(root=root)
        self.config.options['print_results'] = print_results
        self.cli_config = {
            'Actions': Actions,
            'Available_Actions': Available_Actions,
            'Action_Map': Action_Map,
            'prog': 'gkeys',
            'description': 'Gentoo-keys manager program',
            'epilog': '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!'''
        }
        self.version = __version__
Пример #4
0
    def __init__(self, root=None, config=None, print_results=True):
        """ Main class init function.

        @param root: string, root path to use
        @param config: optional GKeysConfig instance, For API use
        @param print_results: optional boolean, for API use
        """
        CliBase.__init__(self)
        self.root = root or "/"
        self.config = config or GKeysConfig(root=root)
        self.config.options['print_results'] = print_results
        self.cli_config = {
            'Actions': Actions,
            'Available_Actions': Available_Actions,
            'Action_Map': Action_Map,
            'Base_Options': [],
            'prog': 'gkeys-gen',
            'description': 'Gentoo Keys GPG key generator program',
            'epilog': '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!'''
        }
        self.version = __version__
Пример #5
0
    def __init__(self, root=None, config=None, print_results=True):
        """ Main class init function.

        @param root: string, root path to use
        @param config: optional GKeysConfig instance, For API use
        @param print_results: optional boolean, for API use
        """
        CliBase.__init__(self)
        self.root = root or "/"
        self.config = config or GKeysConfig(root=root)
        self.config.options['print_results'] = print_results
        self.args = None
        self.seeds = None
        self.cli_config = {
            'Actions': Actions,
            'Available_Actions': Available_Actions,
            'Action_Map': Action_Map,
            'Base_Options': [],
            'prog': 'gkeys-ldap',
            'description': 'Gentoo-keys LDAP interface and seed file generator program',
            'epilog': '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!'''
        }
        self.version = __version__
Пример #6
0
    def __init__(self, root=None, config=None, print_results=True):
        """ Main class init function.

        @param root: string, root path to use
        """
        CliBase.__init__(self)
        self.root = root or "/"
        self.config = config or GKeysConfig(root=root)
        self.config.options['print_results'] = print_results
        self.cli_config = {
            'Actions':  Actions,
            'Available_Actions': Available_Actions,
            'Action_Map': Action_Map,
            'Base_Options': Available_Actions[:],
            'prog': 'gkeys-gpg',
            'description': 'Gentoo-keys gpg command wrapper',
            'epilog': '''CAUTION: adding UNTRUSTED keys can be HAZARDOUS to your system!'''
        }
        self.cli_config['Base_Options'].extend(["armor", "clearsign", "dash",
            "detachsign", "statusfd", "user"])
        self.cli_config['Base_Options'].extend(KEY_OPTIONS)
        self.cli_config['Base_Options'].extend(["category"])
        self.version = __version__
        self.need_Action = False