captive-cli 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/captive/commands/domains_commands.rb +7 -1
- data/lib/captive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2945bf5e2de69e09faee353e8e2c27e3a62a1a9865746b71dd9f179405a0c1b
|
|
4
|
+
data.tar.gz: 70160d63a4ae4dfc3c401f121efb50c1a83e576bf327daa9088631ab51ea99e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7e83b774d39711cf093b71a4c0436070c010a45762643159ff622e005a0dc106b139088eb4c56a89661bde4297e84b8981282e763fbdd0ad49f9868f9c8176d
|
|
7
|
+
data.tar.gz: 27defed341c0decfcfdd47e63ac293f37af92f15daf45a627bc923202c5730436e2816b57c1b59dc32726cdc43cb462fadd85b6ffac2f0420ce682dc51190b36
|
|
@@ -43,7 +43,7 @@ module Captive
|
|
|
43
43
|
def add(app, hostname)
|
|
44
44
|
domains_api.add(app, hostname)
|
|
45
45
|
announcer.call("#{hostname} ajouté") { |wait| wait.until_applied(app, hostname) }
|
|
46
|
-
|
|
46
|
+
dns_notice(app) unless options[:wait]
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
desc "rm APP DOMAINE", "Supprime un domaine de l'app"
|
|
@@ -90,6 +90,12 @@ module Captive
|
|
|
90
90
|
private
|
|
91
91
|
|
|
92
92
|
def presenter = Presenter::Domain.new(paint: paint)
|
|
93
|
+
# Le nom exact (sous-domaine ou « @ ») vient de l'API une fois l'ajout appliqué ; la cible est connue dès maintenant.
|
|
94
|
+
def dns_notice(app)
|
|
95
|
+
puts " Chez votre fournisseur DNS, créez un CNAME vers #{app}.app.captive.dev."
|
|
96
|
+
puts paint.dim(" (domaine racine : un enregistrement A, voir captive domains list #{app})")
|
|
97
|
+
end
|
|
98
|
+
|
|
93
99
|
def domain_wait = DomainWait.new(domains: domains_api, timeout: options[:timeout])
|
|
94
100
|
|
|
95
101
|
def announcer
|
data/lib/captive/version.rb
CHANGED