From a8c6f64662578882e3470ba0fe013677108aa4f4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 29 Mar 2017 15:13:26 -0400 Subject: response --- ...mment_1_95e8b7103f248d93570fecb6b8999996._comment | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment (limited to 'doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment') 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" ... +"""]] -- cgit v1.2.3