learn_create 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_create.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a75639fe4e553b798e96a0212496c030a942f63e6d9237bce169bc6a9f7bee
|
4
|
+
data.tar.gz: b4d1a899f592985f7d5f6e091fc0939a5247fe9eb66696bfd6cef7d5ddaeee92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12ec0ce44cd07c7986e3db84530f7586662c65d8c5868a4d3e8a971640a233b4cbcba9ac7e86707f4f594761605ab1d6365b73271c9fef520f8ea22798eebf9f
|
7
|
+
data.tar.gz: 06f4030e15a1b0a0c2b70cf97a8c8633c061e702c97e795c018c92c24e08ce4655faceec3469e76d6a1434d9bdde25f297601f3a0cc4d0f8e2086c3fbcaa1a35
|
data/lib/learn_create.rb
CHANGED
@@ -78,7 +78,7 @@ class LearnCreate
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def create_local_lesson(type = 'readme', language = nil)
|
81
|
-
puts "Creating #{language}
|
81
|
+
puts "Creating #{language || ''}#{type}..."
|
82
82
|
gem_template_location = File.dirname(__FILE__)
|
83
83
|
template_folder = if !language
|
84
84
|
"/templates/#{type}_template"
|
@@ -91,8 +91,7 @@ class LearnCreate
|
|
91
91
|
|
92
92
|
def copy_template(template_path)
|
93
93
|
# copies a template folder from the learn_create gem to a subfolder of the current directory
|
94
|
-
|
95
|
-
cmd = "rsync -aP #{template_path} #{Dir.pwd}/#{@repo_name}"
|
94
|
+
cmd = "cp -r #{template_path} #{Dir.pwd}/#{@repo_name}"
|
96
95
|
`#{cmd}`
|
97
96
|
end
|
98
97
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn_create
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- flatironschool
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: maxwell@flatironschool.com
|