learn-generate 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/learn-generate +5 -1
- data/lib/learn_generate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 232a47297f0eda431f3323e687636fe35373d2a6
|
4
|
+
data.tar.gz: eae9534acdfe8927d07841a524846e5f02d45f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5375a9f10bd4f2851570b71618add00b4eede4cf971920476ada3cfd14a9cc1e24015659914c5071fdabfe9275dd6f794c57cb25214147f0dcdf2c9d61f1f0d9
|
7
|
+
data.tar.gz: c0029af7aee94c1d716a3f66d1ff9f1a0659c30cf5fd6efc5b3a2336f1d573b436e966a4280976ba96da9996c2f52d76e058aee8f10d6ad0bbf2f3f296397905
|
data/bin/learn-generate
CHANGED
@@ -39,5 +39,9 @@ elsif !ARGV[0] || !ARGV[1]
|
|
39
39
|
elsif !known_templates.include?(ARGV[0])
|
40
40
|
puts my_banner
|
41
41
|
else
|
42
|
-
|
42
|
+
if !File.exists?(ARGV[1])
|
43
|
+
LearnGenerate::TemplateMaker.run(ARGV[0], ARGV[1])
|
44
|
+
else
|
45
|
+
puts "#{ARGV[1]} already exists in this directory. Please specify a new lab name."
|
46
|
+
end
|
43
47
|
end
|