lense 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +7 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1199306f94020b93bd25fce9e481ba0f3d8deb75
4
- data.tar.gz: cf680fca37a8de7cca2f2b33b4d301650b60dd33
3
+ metadata.gz: 087300cf888848081fe99247046af45ec55ebc1c
4
+ data.tar.gz: 43cdd34a0560293c137563afd0063317e0c4f6f9
5
5
  SHA512:
6
- metadata.gz: 24f803becc0d27de107c88ca7722d1f37c35621d71d1643ee745881a73f76f7936b72af64517e188d570acb27340d6a9ee5fec22174092371fd8cd58c301b48e
7
- data.tar.gz: 1ad0b73129d2e705d9ec6101f17082b44189b3cc6060329b76c48fef5d87dac906a14619ac2f987e1c718a9eb64eebd5c06984ae2af5554a5bf8cb97c5987645
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.14'
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta