hexlet 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hexlet/base_cli.rb +1 -0
- data/lib/hexlet/member_cli.rb +6 -0
- data/lib/hexlet/version.rb +1 -1
- data/locales/en.membercli.yml +2 -0
- 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: 506092198382b3785e4dbcd42163950e26aa933b
|
4
|
+
data.tar.gz: f3ae2b6f152e4af35cef99092a11b9a413490c35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 742d1e8a45ad9672437a6fb55ca26cb4ac1b703e62018e16edf55a2395b568fa0be10dd0b4c7b08e53794294b9c26df765bc73296e6e9582675681a0e8502b8a
|
7
|
+
data.tar.gz: 8affdcb249d3f0c716b712bd26ec81acaeaf56f3765669e6e19c86b84af238ab58426ee64b164e90aab4bc180113d484406634d818860b4d5e1759afb9fe01ed
|
data/lib/hexlet/base_cli.rb
CHANGED
data/lib/hexlet/member_cli.rb
CHANGED
@@ -39,6 +39,12 @@ module Hexlet
|
|
39
39
|
if content = client.fetch(lesson_slug, exercise_slug)
|
40
40
|
lesson_path = File.join("/", "vagrant", "exercises", "#{lesson_slug}_lesson")
|
41
41
|
exercise_path = File.join(lesson_path, exercise_slug)
|
42
|
+
if Dir.exists?(exercise_path)
|
43
|
+
unless yes?(t "ask.replace_exercise")
|
44
|
+
return true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
42
48
|
FileUtils.mkdir_p(exercise_path)
|
43
49
|
|
44
50
|
tarball_path = File.join(exercise_path, "exercise.tar.gz")
|
data/lib/hexlet/version.rb
CHANGED
data/locales/en.membercli.yml
CHANGED