Runfile
require 'debug'
require 'menu_commander/version'
title "MenuCommander Developer Toolbelt"
summary "Runfile tasks for building the MenuCommander gem"
version MenuCommander::VERSION
import_gem 'runfile-tasks/gem', gemname: 'menu_commander'
help 'Test the schema against all examples'
action :schema do
Dir['examples/*.yml'].each do |file|
command = "check-jsonschema --schemafile schemas/menu.json #{file}"
say "\n$ check-jsonschema bb`#{file}`"
success = system command
abort 'Failed' unless success
end
end