Specify archive directory in renewal configuration file (#3661)

* Switch to using absolute path in symlink

* save archive_dir to config and read it back

* cli_config.archive_dir --> cli_config.default_archive_dir

* Use archive_dir specified in renewal config file

* add helpful broken symlink info

* add docstring to method

* Add tests

* remove extraneous test imports

* fix tests

* py2.6 syntax fix

* git problems

* no dict comprehension in python2.6

* add test coverage

* More py26 wrangling
This commit is contained in:
Erica Portnoy
2016-10-27 17:23:21 -07:00
committed by Peter Eckersley
parent 88076e46c7
commit 981d59fb45
9 changed files with 203 additions and 33 deletions
+2 -2
View File
@@ -67,6 +67,7 @@ cert. Major SUBCOMMANDS are:
register Perform tasks related to registering with the CA
rollback Rollback server configuration changes made during install
config_changes Show changes made to server config during installation
update_symlinks Update cert symlinks based on renewal config file
plugins Display information about installed plugins
""".format(cli_command)
@@ -322,7 +323,7 @@ class HelpfulArgumentParser(object):
"install": main.install, "plugins": main.plugins_cmd,
"register": main.register, "renew": main.renew,
"revoke": main.revoke, "rollback": main.rollback,
"everything": main.run}
"everything": main.run, "update_symlinks": main.update_symlinks}
# List of topics for which additional help can be provided
HELP_TOPICS = ["all", "security", "paths", "automation", "testing"] + list(self.VERBS)
@@ -680,7 +681,6 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis
help="Domain names to apply. For multiple domains you can use "
"multiple -d flags or enter a comma separated list of domains "
"as a parameter.")
helpful.add(
[None, "testing", "renew", "certonly"],
"--dry-run", action="store_true", dest="dry_run",