lense 0.2.32 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lense +8 -1
  3. data/lib/lense.rb +3 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb192c844cd521f9c56259e3eb7ee279aa7b29fd
4
- data.tar.gz: 518701cced8f84169bc80bdcb68664e9bce84db3
3
+ metadata.gz: 6681d275b3625d37eea58e95cfc603a83c8ca510
4
+ data.tar.gz: a97104838d1b0ce899621d64eb3742fb414bec8d
5
5
  SHA512:
6
- metadata.gz: 3bae252469d59e7ff9138e68bac18b6dfe61822928501b403f3e05d4ddcae0365d84a0a780abb393dc2be80954f8f17f5d5c6e9bc0a47ed38b977fe46355c2c9
7
- data.tar.gz: 25dadd3c0f7149ac6cd6cd07c17335bd890128429281e760fd4792eb32d84e8abb2f994558de7f22ca0e5d0a7171349474a6156ccbdee5cacd4b724afb65b4eb
6
+ metadata.gz: 3837ce4fab8ea5fa97b9dec6667d93758678e986fcbbd44d4c9bd547cac448951d6d015cb213902c9d39dc4a0679f9e2f89348c49a564c4a0c7e5ae1a6116cb5
7
+ data.tar.gz: ede3d6e7c7dce3778b8f005b863ccfe4953b8cbe46666c417f5905e0b2348e8c9e0b4af31af6673f5aadd5af215443f59e4b44260b885fc43bc9bed2a684eb8e
data/bin/lense CHANGED
@@ -46,6 +46,13 @@ command :search do |c|
46
46
  end
47
47
  end
48
48
 
49
+ command :version do |c|
50
+ c.action do
51
+ say "Version: #{LENSE_APP.VERSION}"
52
+ say "Lightweight Environment for Network Security Education (LENSE)"
53
+ end
54
+ end
55
+
49
56
  command :up do |c|
50
57
  c.action do
51
58
  LENSE_APP.up
@@ -85,7 +92,7 @@ end
85
92
 
86
93
  command :commit do |c|
87
94
  c.action do |global_options,options,args|
88
- exit_now!('Must supply file.') if args.count < 1
95
+ exit_now!('Must supply a message.') if args.count < 1
89
96
  LENSE_APP.commit args.join(' ')
90
97
  end
91
98
  end
data/lib/lense.rb CHANGED
@@ -8,7 +8,7 @@ require 'psych'
8
8
  class LENSE
9
9
  attr_reader :config, :current_course, :lense_file_hash
10
10
 
11
- VERSION = '0.2.32'
11
+ VERSION = '0.3.0'
12
12
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
13
13
  COURSES_DIR = File.join(LENSE_DIR,'courses')
14
14
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
@@ -256,7 +256,7 @@ class LENSE
256
256
  say "<%= color('running: ',:green) %> #{cmd}"
257
257
  output = `#{cmd}`
258
258
  say "<%= color(' => ',:blue) %> #{output}"
259
- end
259
+ end if lense['up']
260
260
 
261
261
  run
262
262
  end
@@ -267,7 +267,7 @@ class LENSE
267
267
  say "<%= color('running: ',:green) %> #{cmd}"
268
268
  output = `#{cmd}`
269
269
  say "<%= color(' => ',:blue) %> #{output}"
270
- end
270
+ end if lense['down']
271
271
  end
272
272
 
273
273
  def push()
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.32
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta