ulbrich-jruby-enginize 0.5 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/script.rb +4 -3
- metadata +1 -1
data/lib/script.rb
CHANGED
@@ -64,10 +64,11 @@ module JRubyEnginize # :nodoc:
|
|
64
64
|
begin
|
65
65
|
opt.parse!(ARGV)
|
66
66
|
|
67
|
-
raise
|
68
|
-
raise
|
67
|
+
raise 'missing directory name' if (path = ARGV.first).nil? or path.empty?
|
68
|
+
raise 'directory already exists' if FileTest.exists? path
|
69
|
+
raise 'unknown template' if not JRubyEnginize::Generator.templates.include? template
|
69
70
|
|
70
|
-
raise
|
71
|
+
raise 'missing e-mail address' if email.nil? or email.empty?
|
71
72
|
rescue SystemExit
|
72
73
|
exit(1)
|
73
74
|
rescue Exception => exception
|