summaryrefslogtreecommitdiff
path: root/doc/forum/Using_propellor_for_continers_only
diff options
context:
space:
mode:
authorJoey Hess2017-03-29 15:13:26 -0400
committerJoey Hess2017-03-29 15:13:26 -0400
commita8c6f64662578882e3470ba0fe013677108aa4f4 (patch)
treeed8e27207d50ef969999c7ec93a3d5e35b829fb6 /doc/forum/Using_propellor_for_continers_only
parentfa84f575880cec54453fb2b89f6db78528c6a0ef (diff)
response
Diffstat (limited to 'doc/forum/Using_propellor_for_continers_only')
-rw-r--r--doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment b/doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment
new file mode 100644
index 00000000..dc6cc616
--- /dev/null
+++ b/doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment
@@ -0,0 +1,20 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2017-03-29T19:09:37Z"
+ content="""
+Sounds like you may want to write a program that uses propellor as a
+library. `Propellor.Engine.mainProperties` is a reasonable
+entry point, just pass it a Host that has the properties you want
+to run.
+
+For example:
+
+ import Propellor
+ import Propellor.Engine
+ import Propellor.Property.DiskImage
+
+ main :: IO ()
+ main = mainProperties $ host "whatever" $ props
+ & imageBuilt "/some/disk.img" ...
+"""]]