DannyBen/madness

View on GitHub
tasks/schema.runfile

Summary

Maintainability
Test Coverage
summary 'Test the madness JSON schema'

action do
  file = 'lib/madness/templates/madness.yml'
  command = "check-jsonschema --schemafile schemas/madness.json #{file}"
  say "\n$ check-jsonschema bb`#{file}`"
  success = system command
  exit 1 unless success
end