Created
November 14, 2012 16:06
-
-
Save zzamboni/4072995 to your computer and use it in GitHub Desktop.
Revisions
-
zzamboni revised this gist
Nov 14, 2012 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,9 +6,8 @@ classes: "should_exist_$(cindex[$(index)])" expression => "any"; files: "/$(dir)/$(index)" create => "true"; "/$(dir)/$(files)" delete => tidy, ifvarclass => "!should_exist_$(cindex[$(files)])"; -
zzamboni created this gist
Nov 14, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ vars: "dir" string => "/etc/apache2/modules-enabled"; "index" slist => getindices("array"); "cindex[$(index)]" string => canonify("$(index)"); "files" slist => lsdir("$(dir)", ".*", "false"); classes: "should_exist_$(cindex[$(index)])" expression => "any"; files: "/$(dir)/$(files)" create => "true", ifvarclass => "should_exist_$(cindex[$(files)])"; "/$(dir)/$(files)" delete => tidy, ifvarclass => "!should_exist_$(cindex[$(files)])";