aboutsummaryrefslogtreecommitdiff
path: root/doc/introduction.rst
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-05 14:16:19 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-05 14:16:19 -0700
commit8bd3e70d923fc2001d7f8aa5027e7abbcef58ee8 (patch)
treec1c37dc82237854bbeff7703acc206487e09936d /doc/introduction.rst
parentafbb72dfca9489f0e9b56171d9c9df6baa015798 (diff)
downloadconsfigurator-8bd3e70d923fc2001d7f8aa5027e7abbcef58ee8.tar.gz
rework FILE:HAS-CONTENT and add FILE:HAS-CONTENT-LINES
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'doc/introduction.rst')
-rw-r--r--doc/introduction.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/introduction.rst b/doc/introduction.rst
index e62f6b6..7450355 100644
--- a/doc/introduction.rst
+++ b/doc/introduction.rst
@@ -40,10 +40,16 @@ Try it out / quick start
(try-register-data-source
:pgp :location #P"/path/to/com.example.consfig.gpg")
+ (defparameter my-substitution "substititions")
+
(defhost athena.example.com
(:deploy (:ssh (:sudo :as "spwhitton@athena.example.com") :debian-sbcl))
"Web and file server."
- (file:has-content "/etc/foo" '("these" "are" "my" "lines"))
+ (file:has-content "/etc/foo"
+ #?{Here is my file content.
+ You can use ${my-substitution} thanks to CL-INTERPOL.
+ And it's multiline.})
+ (file:has-content-lines "/etc/bar" '("these" "are" "my" "lines"))
(file:contains-lines "/etc/some.conf" '("FOO=bar")))
Here, "spwhitton" is my username on athena; we have to tell Consfigurator