This commit is contained in:
https://www.google.com/accounts/o8/id?id=AItOawm-czsfuWENKQ0GI8l0gnGTeF1JEli1mA0 2015-04-14 18:59:07 +00:00 committed by admin
parent 08a38e705b
commit ea8a24b983
1 changed files with 29 additions and 12 deletions

View File

@ -16,22 +16,35 @@ I can run
from the command line, and all the tasks/properties that I have from the command line, and all the tasks/properties that I have
defined myhost to have beforehand will be executed/realized/configured. defined myhost to have beforehand will be executed/realized/configured.
Say eg. I haved defined Say eg. I haved defined (sorry for the bad formatting,
seems I have to do it line by line to get the markdown look nice)
``` ```
myhost :: Host myhost :: Host
```
```
myhost = host "myhost" myhost = host "myhost"
& os (System (Debian Testing) "amd64") & os (System (Debian Testing) "amd64")
& emacs & emacs
& apt & apt
```
```
emacs :: Property HasInfo emacs :: Property HasInfo
```
```
emacs = propertyList "install & configure emacs" $ props emacs = propertyList "install & configure emacs" $ props
& Apt.installed ["emacs" & Apt.installed ["emacs"
, "auto-complete-el"] , "auto-complete-el"]
```
```
apt :: Property HasInfo apt :: Property HasInfo
```
```
apt = propertyList "apt update + upgrade" $ props apt = propertyList "apt update + upgrade" $ props
& Apt.update & Apt.update
& Apt.upgrade & Apt.upgrade
@ -56,6 +69,9 @@ myhost, like this:
``` ```
myhost :: Host myhost :: Host
```
```
myhost = host "myhost" myhost = host "myhost"
& os (System (Debian Testing) "amd64") & os (System (Debian Testing) "amd64")
``` ```
@ -106,6 +122,7 @@ and
``` ```
--task (emacs/apt/...) --task (emacs/apt/...)
``` ```
and then just call into propellor. Unfortunately propellor's and then just call into propellor. Unfortunately propellor's
defaultMain does more than I want: gets the command line defaultMain does more than I want: gets the command line
from processCmdLine. from processCmdLine.