mkteaching: fail if directory missing
This commit is contained in:
parent
655a691160
commit
fa988519c0
1 changed files with 6 additions and 1 deletions
|
@ -7,7 +7,12 @@ require 'thor'
|
||||||
require 'colorize'
|
require 'colorize'
|
||||||
|
|
||||||
EXCLUDE_LIST = ['.git', 'node_modules'].freeze
|
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
|
# TeachingCli
|
||||||
class TeachingCli < Thor
|
class TeachingCli < Thor
|
||||||
|
|
Loading…
Reference in a new issue