Coverage for certbot/configuration.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Certbot user-supplied configuration."""
"""Configuration wrapper around :class:`argparse.Namespace`.
For more documentation, including available attributes, please see :class:`certbot.interfaces.IConfig`. However, note that the following attributes are dynamically resolved using :attr:`~certbot.interfaces.IConfig.work_dir` and relative paths defined in :py:mod:`certbot.constants`:
- `accounts_dir` - `csr_dir` - `in_progress_dir` - `key_dir` - `temp_checkpoint_dir`
And the following paths are dynamically resolved using :attr:`~certbot.interfaces.IConfig.config_dir` and relative paths defined in :py:mod:`certbot.constants`:
- `default_archive_dir` - `live_dir` - `renewal_configs_dir`
:ivar namespace: Namespace typically produced by :meth:`argparse.ArgumentParser.parse_args`. :type namespace: :class:`argparse.Namespace`
"""
# Check command line parameters sanity, and error out in case of problem.
def server_path(self): """File path based on ``server``."""
def accounts_dir(self): # pylint: disable=missing-docstring
"""Path to accounts directory based on server_path""" self.namespace.config_dir, constants.ACCOUNTS_DIR, server_path)
def backup_dir(self): # pylint: disable=missing-docstring
def csr_dir(self): # pylint: disable=missing-docstring
def in_progress_dir(self): # pylint: disable=missing-docstring
def key_dir(self): # pylint: disable=missing-docstring
def temp_checkpoint_dir(self): # pylint: disable=missing-docstring self.namespace.work_dir, constants.TEMP_CHECKPOINT_DIR)
# Work around https://bugs.python.org/issue1515 for py26 tests :( :( # https://travis-ci.org/letsencrypt/letsencrypt/jobs/106900743#L3276
def default_archive_dir(self): # pylint: disable=missing-docstring
def live_dir(self): # pylint: disable=missing-docstring
def renewal_configs_dir(self): # pylint: disable=missing-docstring self.namespace.config_dir, constants.RENEWAL_CONFIGS_DIR)
def renewal_hooks_dir(self): """Path to directory with hooks to run with the renew subcommand.""" constants.RENEWAL_HOOKS_DIR)
def renewal_pre_hooks_dir(self): """Path to the pre-hook directory for the renew subcommand.""" constants.RENEWAL_PRE_HOOKS_DIR)
def renewal_deploy_hooks_dir(self): """Path to the deploy-hook directory for the renew subcommand.""" constants.RENEWAL_DEPLOY_HOOKS_DIR)
def renewal_post_hooks_dir(self): """Path to the post-hook directory for the renew subcommand.""" constants.RENEWAL_POST_HOOKS_DIR)
"""Validate command line options and display error message if requirements are not met.
:param config: IConfig instance holding user configuration :type args: :class:`certbot.interfaces.IConfig`
""" # Port check "Trying to run http-01 and tls-sni-01 " "on the same port ({0})".format(config.tls_sni_01_port))
# Domain checks # This may be redundant, but let's be paranoid |