lense 0.2.32 → 0.3.0
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 +8 -1
- data/lib/lense.rb +3 -3
- 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: 6681d275b3625d37eea58e95cfc603a83c8ca510
|
4
|
+
data.tar.gz: a97104838d1b0ce899621d64eb3742fb414bec8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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()
|