lense 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/lense +2 -1
- data/lib/lense.rb +2 -2
- 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: b2f6a99dc6de96fde636673c2fbcfadf8475b6e1
|
4
|
+
data.tar.gz: a19fc904d01a61a14bc1355f81cb1666d1e1edd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e69bbc34c591b3415f30ac2ca0b738b5e0aee217a8012ce97c31e6028513bcd83955649dc8c2bdeabfaae1d2bb0544d28c0189cd21bbeba4a57bcfa59f17661
|
7
|
+
data.tar.gz: d06f776693edde06b8f35aba7acb231926f1afbd086760de5ce07e2e123774d8cebf3c362da9f9bcec18a3ec54271c6dda44c9d24ac59d97b014b4d892ee3add
|
data/bin/lense
CHANGED
@@ -26,6 +26,7 @@ pre do |global_options,command,options,args|
|
|
26
26
|
minimal_needed = found_docker || found_vagrant
|
27
27
|
puts "ERROR: Must have either Docker or Vagrant!" unless minimal_needed
|
28
28
|
|
29
|
+
puts LENSE_APP.current_course
|
29
30
|
minimal_needed
|
30
31
|
end
|
31
32
|
|
@@ -79,7 +80,7 @@ command :select do |c|
|
|
79
80
|
if res.nil?
|
80
81
|
puts "Staying on #{course}..."
|
81
82
|
else
|
82
|
-
puts "Switched to course: #{
|
83
|
+
puts "Switched to course: #{res}."
|
83
84
|
end
|
84
85
|
end
|
85
86
|
end
|
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.12'
|
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')
|
@@ -26,7 +26,7 @@ class LENSE
|
|
26
26
|
|
27
27
|
if course_available && course != @current_course
|
28
28
|
File.open(CURRENT_COURSE_FILE, 'w') { |f| f.write course }
|
29
|
-
|
29
|
+
course
|
30
30
|
elsif course == @current_course
|
31
31
|
nil
|
32
32
|
else
|