diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/forum/Using_propellor_for_continers_only/comment_1_95e8b7103f248d93570fecb6b8999996._comment | 20 |
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" ... +"""]] |
