lense 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +2 -1
  3. data/Gemfile +2 -0
  4. data/bin/lense +66 -1
  5. data/lib/lense.rb +2 -2
  6. metadata +11 -13
  7. data/Gemfile.lock +0 -30
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTE3NzgwZDg5NjNhNTIxYWJmNmM0YWM1YWEwZGU3YWU0OTczODAwNQ==
5
- data.tar.gz: !binary |-
6
- YzE0MmJmZjIyZTZiMmYwZmNlYWVlNzFmMDIyOGI3MDExYTNiNTExNw==
2
+ SHA1:
3
+ metadata.gz: 5536b601870c998b17c2ea7a946b8a32949ecdea
4
+ data.tar.gz: bf03879eaf5de65870c930f53140c1871dc08028
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NTcwM2E3YTVkMTE4NzEzY2VlZjY5NDIwNTdhMTE5NTE5Y2ZiMzRjMmE1Mjkw
10
- NWEyYTI2NWM4OGYyMTQ5ZDIzMzFjNjM5YjA1NGIzZmRiZGE0NzMwZTQ4M2Iz
11
- NzIzMmNkMjBjOWQ2Yzk5Nzc4ZmFmMjBjNzc3YzZkMWQzNWNmN2Y=
12
- data.tar.gz: !binary |-
13
- ZjYwOTcwZGYwMzNiMzRiYzBiMjMyNTliYjdhNjU3YjdlODcwYWNiNzIwYjM0
14
- NDhjNWU4ZDk1MjZlZmJjNmEzNzhhYWI5ZWVhMTgyOTU2YzdiMmI3ZTRjYjA4
15
- ODU3ZGZhNjcxODNlNzVkMjU1MTkwODhhODEzMWZhNzUyZmUwNzA=
6
+ metadata.gz: df951b16ed87b7ee26d570a0694565d7dcf8332f7a65f0be23605f8ee0cfe1fbe18c192e5e2363dec6f859bb47c60467038edbc52de390bb52c62d9748cc7611
7
+ data.tar.gz: 5cc43acddd068fc8ca4ad34f86e1de18a96740ca54ae802eee88bc9c72fc23b65226ae65d54d84da86888e017d5d1e2ed8989746aa77daf4cf88952b1a8a88ac
data/.gitignore CHANGED
@@ -33,5 +33,6 @@ build/
33
33
 
34
34
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
35
  .rvmrc
36
- *.sw*
36
+ *.sw?
37
37
  .idea
38
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+ gem "gli", ">= 2.13.0"
5
+ gem "psych", ">= 2.0.13"
data/bin/lense CHANGED
@@ -1,3 +1,68 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- puts 'Hello World (from LENSE)!'
3
+ require 'gli'
4
+
5
+ include GLI::App
6
+
7
+ program_desc 'A tool for creating, executing and managing LENSE courses.'
8
+
9
+ pre do |global_options,command,options,args|
10
+ puts 'TODO add health and initialization check'
11
+ true
12
+ end
13
+
14
+ command :list do |c|
15
+ c.action do
16
+ puts 'TODO implement listing of installed courses'
17
+ end
18
+ end
19
+
20
+ command :search do |c|
21
+ c.action do
22
+ puts 'TODO implement searching of possible courses'
23
+ end
24
+ end
25
+
26
+ command :up do |c|
27
+ c.action do
28
+ puts 'TODO implement starting of current course'
29
+ end
30
+ end
31
+
32
+ command :down do |c|
33
+ c.action do
34
+ puts 'TODO implement stopping of current course'
35
+ end
36
+ end
37
+
38
+ command :destroy do |c|
39
+ c.action do
40
+ puts 'TODO implement destroying of current course'
41
+ end
42
+ end
43
+
44
+ command :pull do |c|
45
+ c.action do
46
+ puts 'TODO implement retrieving new course'
47
+ end
48
+ end
49
+
50
+ command :push do |c|
51
+ c.action do
52
+ puts 'TODO implement uploading of current course'
53
+ end
54
+ end
55
+
56
+ command :select do |c|
57
+ c.action do
58
+ puts 'TODO implement switching current course to new course'
59
+ end
60
+ end
61
+
62
+ command :commit do |c|
63
+ c.action do
64
+ puts 'TODO implement saving of current course'
65
+ end
66
+ end
67
+
68
+ exit run(ARGV)
data/lib/lense.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module LENSE
2
2
  extend self
3
3
 
4
- VERSION = '0.0.0'
5
- end
4
+ VERSION = '0.1.0'
5
+ end
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.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-12 00:00:00.000000000 Z
12
+ date: 2015-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>'
32
+ - - ">"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>'
39
+ - - ">"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3'
42
42
  description:
@@ -48,10 +48,9 @@ executables:
48
48
  extensions: []
49
49
  extra_rdoc_files: []
50
50
  files:
51
- - .gitignore
52
- - .rspec
51
+ - ".gitignore"
52
+ - ".rspec"
53
53
  - Gemfile
54
- - Gemfile.lock
55
54
  - README.md
56
55
  - Rakefile
57
56
  - bin/lense
@@ -67,20 +66,19 @@ require_paths:
67
66
  - lib
68
67
  required_ruby_version: !ruby/object:Gem::Requirement
69
68
  requirements:
70
- - - ! '>='
69
+ - - ">="
71
70
  - !ruby/object:Gem::Version
72
71
  version: '0'
73
72
  required_rubygems_version: !ruby/object:Gem::Requirement
74
73
  requirements:
75
- - - ! '>='
74
+ - - ">="
76
75
  - !ruby/object:Gem::Version
77
76
  version: '0'
78
77
  requirements: []
79
78
  rubyforge_project:
80
- rubygems_version: 2.4.6
79
+ rubygems_version: 2.4.5
81
80
  signing_key:
82
81
  specification_version: 4
83
82
  summary: Commandline tools for creation, distribution, and execution of \ Lightweight
84
83
  Environment for Network Security Education (LENSE)
85
84
  test_files: []
86
- has_rdoc:
data/Gemfile.lock DELETED
@@ -1,30 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- lense (0.0.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.2.5)
10
- rake (10.4.2)
11
- rspec (3.1.0)
12
- rspec-core (~> 3.1.0)
13
- rspec-expectations (~> 3.1.0)
14
- rspec-mocks (~> 3.1.0)
15
- rspec-core (3.1.7)
16
- rspec-support (~> 3.1.0)
17
- rspec-expectations (3.1.2)
18
- diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.1.0)
20
- rspec-mocks (3.1.3)
21
- rspec-support (~> 3.1.0)
22
- rspec-support (3.1.2)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- lense!
29
- rake
30
- rspec (> 3)