mkteaching: fail if directory missing

This commit is contained in:
Glenn Y. Rolland 2020-09-03 11:32:44 +02:00
parent 655a691160
commit fa988519c0

View file

@ -7,7 +7,12 @@ require 'thor'
require 'colorize'
EXCLUDE_LIST = ['.git', 'node_modules'].freeze
SKEL_DIR = ENV['HOME'] + '/src/Glenux/teaching-boilerplate'
SKEL_DIR = ENV['HOME'] + '/src/Glenux.Teaching/teaching-boilerplate'
if ! File.directory? SKEL_DIR
warn "ERROR: missing #{SKEL_DIR}"
exit 1
end
# TeachingCli
class TeachingCli < Thor