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 |
|