factor out validate method into util script
Merge pull request #46 from pweil-/deploy-trigger

factor out validate method into util script