lense 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lense.rb +9 -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: bcdb2fb208ebc9efd8cf4947afaca7cd16fdc59b
|
4
|
+
data.tar.gz: 698fc5411654900e60d03aafd3d92043ff75fbf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 584278c6a64d901f01c217ab44288987e33d1b197937bc81d64a5df6ad62ebb36db0dd2552938a67aa8bbdb964bdf0f0280b9c72aefa2ade9b0b560298c728b4
|
7
|
+
data.tar.gz: 8aa71495443323e9fbdc71a642339f90c5e17d52652ca13969dca8c3224325cad6fe3c5952c3a6a9b9cab4e2eed39e4ed1068c98bff74b88e068514210ce8475
|
data/lib/lense.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class LENSE
|
2
2
|
attr_reader :config, :current_course
|
3
3
|
|
4
|
-
VERSION = '0.1.
|
4
|
+
VERSION = '0.1.14'
|
5
5
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
6
6
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
7
7
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -34,4 +34,12 @@ class LENSE
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
def list_courses()
|
38
|
+
Dir.entries(COURSES_DIR).each do |c|
|
39
|
+
prefix = c == @current_course ? " > " : " "
|
40
|
+
puts "#{prefix}#{c}"
|
41
|
+
puts ""
|
42
|
+
puts "Indicates current course (>)"
|
43
|
+
end
|
44
|
+
end
|
37
45
|
end
|