lense 0.2.14 → 0.2.15
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 +7 -5
- 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: 087300cf888848081fe99247046af45ec55ebc1c
|
4
|
+
data.tar.gz: 43cdd34a0560293c137563afd0063317e0c4f6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 938ed7a3fee332367f82b473cc851a98723a2b95af416c5bae313a57919aad27462f4564963bc2014d1818bab2ec1ec829a5c35421c8137f7573b6415e3090d4
|
7
|
+
data.tar.gz: eec205572ebee6153025292e6cee1d12d98dc54b0f2aebc3ef236db3359dec086fcfcc6f145269a5cc214fd4e7a94593dbbc4461d48f04fea5872e040a06d5d2
|
data/lib/lense.rb
CHANGED
@@ -7,7 +7,7 @@ require 'base64'
|
|
7
7
|
class LENSE
|
8
8
|
attr_reader :config, :current_course, :lense_file_hash
|
9
9
|
|
10
|
-
VERSION = '0.2.
|
10
|
+
VERSION = '0.2.15'
|
11
11
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
12
12
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
13
13
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -256,16 +256,18 @@ class LENSE
|
|
256
256
|
def up
|
257
257
|
lense = read_lensefile
|
258
258
|
lense['up'].each do |cmd|
|
259
|
-
say "running: #{cmd}"
|
260
|
-
`#{cmd}`
|
259
|
+
say "<%= color('running: ',:green) %> #{cmd}"
|
260
|
+
output `#{cmd}`
|
261
|
+
say "<%= color(' => ',:blue) %> #{output}"
|
261
262
|
end
|
262
263
|
end
|
263
264
|
|
264
265
|
def down
|
265
266
|
lense = read_lensefile
|
266
267
|
lense['down'].each do |cmd|
|
267
|
-
say "running: #{cmd}"
|
268
|
-
`#{cmd}`
|
268
|
+
say "<%= color('running: ',:green) %> #{cmd}"
|
269
|
+
output = `#{cmd}`
|
270
|
+
say "<%= color(' => ',:blue) %> #{output}"
|
269
271
|
end
|
270
272
|
end
|
271
273
|
|