webapps.mason: fixes

db4
Slava Pestov 2010-09-06 17:47:39 -07:00
parent 9b6db6b0e3
commit 04d1bbb0ca
3 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ IN: webapps.mason.docs-update
: update-docs ( -- )
home [
"newdocs" make-directory
"newdocs" [ { "tar" "xvf" "../docs.tar.gz" } try-process ] with-directory
"newdocs" [ { "tar" "xfz" "../docs.tar.gz" } try-process ] with-directory
"docs" exists? [ "docs" "docs.old" move-file ] when
"newdocs/docs" "docs" move-file

View File

@ -56,7 +56,6 @@ IN: webapps.mason.status-update
{ "message" [ v-one-line ] }
{ "arg" [ [ v-one-line ] v-optional ] }
{ "report" [ ] }
{ "secret" [ v-one-line ] }
} validate-params
validate-secret

View File

@ -56,5 +56,6 @@ IN: webapps.mason.utils
adjust-url ;
: validate-secret ( -- )
{ { "secret" [ v-one-line ] } } validate-params
"secret" value status-secret get =
[ validation-failed ] unless ;