lense 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/lense +3 -1
- data/lib/lense.rb +1 -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: e2912fe447a26bd1b7c26ccb9c2dd38a1dbed0e5
|
4
|
+
data.tar.gz: a9f65b082695991d3b62623a28127a77762aee77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01146da48f9b4a16ebc8ff92cc54e8d45b8195e777493383b967ec7957dcac697e493b050bf882d33b687f3e7a4d0e76a2544572796defe959c3e63b79d00474
|
7
|
+
data.tar.gz: 73b5ba662dffc0f6262f0ae3d9cf68cd8e688516a5e079b3a08ee31a88c69cefe0612224a8989f6a4f902b852cb46ad70551946353e6945f041d09bf21ac3512
|
data/bin/lense
CHANGED
@@ -17,6 +17,7 @@ pre do |global_options,command,options,args|
|
|
17
17
|
found_docker = system_check('which docker')
|
18
18
|
docker_running = found_docker && system_check('docker version')
|
19
19
|
found_vagrant = system_check('which vagrant')
|
20
|
+
found_git = system_check('which git')
|
20
21
|
|
21
22
|
be_quiet = global_options[:quiet] || LENSE_APP.config["quiet"]
|
22
23
|
puts "WARNING: Docker not found. Unable to run courses that use Docker!" unless found_docker || be_quiet
|
@@ -24,7 +25,8 @@ pre do |global_options,command,options,args|
|
|
24
25
|
puts "WARNING: Vagrant not found. Unable to run courses that use Vagrant!" unless found_vagrant || be_quiet
|
25
26
|
|
26
27
|
minimal_needed = found_docker || found_vagrant
|
27
|
-
|
28
|
+
exit_now!("Must have git installed!") unless found_git
|
29
|
+
exit_now!("Must have either Docker or Vagrant!") unless minimal_needed
|
28
30
|
|
29
31
|
minimal_needed
|
30
32
|
end
|
data/lib/lense.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rest-client'
|
|
2
2
|
class LENSE
|
3
3
|
attr_reader :config, :current_course
|
4
4
|
|
5
|
-
VERSION = '0.1.
|
5
|
+
VERSION = '0.1.20'
|
6
6
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
7
7
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
8
8
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|