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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7cd0170eb73ddeb9d7a50161cc2a887c0962bd3b
4
- data.tar.gz: 7d985e95eeef7de156b5c87dce9e6e75fd183205
3
+ metadata.gz: 232a47297f0eda431f3323e687636fe35373d2a6
4
+ data.tar.gz: eae9534acdfe8927d07841a524846e5f02d45f2c
5
5
  SHA512:
6
- metadata.gz: e84575e41b5d07098e3bee1ec72d4e9d4f4560b6deb00935751f29dbce94afdc3d97632551e9b32e6828458ebab7621831fc1a280bac60a65cdbe5eb07904399
7
- data.tar.gz: f756e2306be30f27087fba1652b3dd091ae581d5c736ac459accfc4d68148d08be055cd54eb4936c38429089c58e68b465e7d550495ddfb65de9e22969cefb22
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
- LearnGenerate::TemplateMaker.run(ARGV[0], ARGV[1])
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
@@ -1,3 +1,3 @@
1
1
  module LearnGenerate
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School