lense 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/lense +6 -0
- data/lib/lense.rb +9 -3
- 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: bed2ac9dd98f2eb6280ab8eef4689dbe14fb4504
|
4
|
+
data.tar.gz: 7a0989d4c5093bac8096d6da73dbf8e56bf65ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70fabf5d567a2837c8a6f8c5612f38d1cbca658ee74710c98d5bb4cbd3657e8ee8d7cedf4e9905a32bcb4dd5fc77bd879ac1def75e7cce50967e4d1d2dfea864
|
7
|
+
data.tar.gz: d21f958ea64ee1d5a17791fd06783ecffabee2066fd5a76d29d6b76bc931fd57be481760fd09bfc6dbb19975322f372214d5740426cc444be87b28e716a7b6d7
|
data/bin/lense
CHANGED
data/lib/lense.rb
CHANGED
@@ -4,10 +4,12 @@ require 'highline/import'
|
|
4
4
|
class LENSE
|
5
5
|
attr_reader :config, :current_course
|
6
6
|
|
7
|
-
VERSION = '0.1.
|
7
|
+
VERSION = '0.1.29'
|
8
8
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
9
9
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
10
10
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
11
|
+
LOCAL_LENSE_DIR = File.join(ENV['PWD'],'.lense')
|
12
|
+
DEPS_DIR = File.join(LOCAL_LENSE_DIR,'deps')
|
11
13
|
|
12
14
|
def initialize()
|
13
15
|
Dir.mkdir(LENSE_DIR) unless File.directory?(LENSE_DIR)
|
@@ -103,7 +105,11 @@ class LENSE
|
|
103
105
|
end
|
104
106
|
|
105
107
|
def init()
|
106
|
-
|
107
|
-
Dir.mkdir(
|
108
|
+
Dir.mkdir(LOCAL_LENSE_DIR) unless File.directory?(LOCAL_LENSE_DIR)
|
109
|
+
Dir.mkdir(DEPS_DIR) unless File.directory?(DEPS_DIR)
|
110
|
+
end
|
111
|
+
|
112
|
+
def status()
|
113
|
+
exit_now!("Not a LENSE project: .lense") unless File.directory?(LOCAL_LENSE_DIR)
|
108
114
|
end
|
109
115
|
end
|