ohemorange
d56cd4ef01
Make the contents of the DNS plugins private ( #7580 )
...
Part of #5775 .
```
modify_item () {
mkdir certbot-dns-$1/certbot_dns_$1/_internal
git grep -l "from certbot_dns_$1 import dns_$1" | xargs sed -i "s/from certbot_dns_$1 import dns_$1/from certbot_dns_$1._internal import dns_$1/g"
git grep -l "certbot_dns_$1\.dns_$1" | xargs sed -i "s/certbot_dns_$1\.dns_$1/certbot_dns_$1._internal.dns_$1/g"
git checkout -- certbot-dns-$1/certbot_dns_$1/__init__.py
echo '"""Internal implementation of \`~certbot_dns_$1.dns_$1\` plugin."""' > certbot-dns-$1/certbot_dns_$1/_internal/__init__.py
mv certbot-dns-$1/certbot_dns_$1/dns_$1.py certbot-dns-$1/certbot_dns_$1/_internal
git checkout -- CHANGELOG.md
git status
git add -A
git commit -m "Move certbot-dns-$1 to _internal structure"
}
```
Structure now looks like this:
```
certbot-dns-cloudflare/
├── certbot_dns_cloudflare
│ ├── dns_cloudflare_test.py
│ ├── __init__.py
│ └── _internal
│ ├── dns_cloudflare.py
│ └── __init__.py
```
* Move certbot-dns-cloudflare to _internal structure
* Move certbot-dns-cloudxns to _internal structure
* Move certbot-dns-digitalocean to _internal structure
* Move certbot-dns-dnsimple to _internal structure
* Move certbot-dns-dnsmadeeasy to _internal structure
* Move certbot-dns-gehirn to _internal structure
* Move certbot-dns-google to _internal structure
* Move certbot-dns-linode to _internal structure
* Move certbot-dns-luadns to _internal structure
* Move certbot-dns-nsone to _internal structure
* Move certbot-dns-ovh to _internal structure
* Move certbot-dns-rfc2136 to _internal structure
* Move certbot-dns-sakuracloud to _internal structure
* Init file comments need to be comments
* Move certbot-dns-route53 to _internal structure
* Fix comment in route53 init
2019-11-25 10:26:05 -08:00
Zach Shepherd
a06dec3660
route53: avoid listing the plugin twice in the UI ( #4794 )
...
Without this change, the Route53 plugin is listed twice when running
Certbot interactively (once under the old name, once under the new name).
This change ensures only the new name is shown, while maintaining hidden
backwards compatibility with the old name.
2017-06-07 15:16:52 -07:00
Zach Shepherd
e749937465
route53: rename to match other DNS plugins ( #4747 )
...
This change renames certbot-route53 to certbot-dns-route53 and updates
the package's setup.py file to maintain backwards compatibility.
Testing Done:
* Run `certbot` with `-a certbot-route53:auth`, verify the plugin runs.
* Run `certbot` with `--dns-route53`, verify the plugin runs.
2017-06-06 15:41:04 -07:00