lense 0.3.5 → 0.3.6
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 +14 -6
- data/lib/lense.rb +1 -1
- 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: 3fd5dc3afe6611310d5a57bc524c4b4d75649660
|
4
|
+
data.tar.gz: 75b95815fc150bf324d65e8c19ceeb637fa5489a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef517e06101274af59ee3544606b401920fe74bc156fc3b2c190b19986865251118e26f4a3d85a1fb523a5fc0868e2407af0c5b156642b6d46dbdfd907c3fa3f
|
7
|
+
data.tar.gz: a7e0bd4f52431b8589edbecd4c3a891bb285692ffd9f336dbb63beff49062309ff7767572bde82b5d72e54d68d9ceba3017ae475b6eed4cc73724a4426161f9c
|
data/bin/lense
CHANGED
@@ -33,12 +33,14 @@ pre do |global_options,command,options,args|
|
|
33
33
|
minimal_needed
|
34
34
|
end
|
35
35
|
|
36
|
+
desc "list installed courses"
|
36
37
|
command :list do |c|
|
37
38
|
c.action do
|
38
39
|
LENSE_APP.list_courses
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
43
|
+
desc "search the repository for a term"
|
42
44
|
command :search do |c|
|
43
45
|
c.action do |global_options,options,args|
|
44
46
|
exit_now!('Must supply search item.') if args.count < 1
|
@@ -46,6 +48,7 @@ command :search do |c|
|
|
46
48
|
end
|
47
49
|
end
|
48
50
|
|
51
|
+
desc "display the current installed version of LENSE"
|
49
52
|
command :version do |c|
|
50
53
|
c.action do
|
51
54
|
say "Version: #{LENSE::VERSION}"
|
@@ -53,36 +56,35 @@ command :version do |c|
|
|
53
56
|
end
|
54
57
|
end
|
55
58
|
|
59
|
+
desc "launch the current course"
|
56
60
|
command :up do |c|
|
57
61
|
c.action do
|
58
62
|
LENSE_APP.up
|
59
63
|
end
|
60
64
|
end
|
61
65
|
|
66
|
+
desc "decommision the current course"
|
62
67
|
command :down do |c|
|
63
68
|
c.action do
|
64
69
|
LENSE_APP.down
|
65
70
|
end
|
66
71
|
end
|
67
72
|
|
68
|
-
|
69
|
-
c.action do
|
70
|
-
puts 'TODO implement destroying of current course'
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
73
|
+
desc "push lesson changes to the repository"
|
74
74
|
command :push do |c|
|
75
75
|
c.action do |global_options,options,args|
|
76
76
|
LENSE_APP.push
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
desc "pull latest changes of a lesson"
|
80
81
|
command :pull do |c|
|
81
82
|
c.action do |global_options,options,args|
|
82
83
|
LENSE_APP.pull
|
83
84
|
end
|
84
85
|
end
|
85
86
|
|
87
|
+
desc "clone a lesson"
|
86
88
|
command :clone do |c|
|
87
89
|
c.action do |global_options,options,args|
|
88
90
|
exit_now!('Must supply a LENSE repository.') if args.count < 1
|
@@ -90,6 +92,7 @@ command :clone do |c|
|
|
90
92
|
end
|
91
93
|
end
|
92
94
|
|
95
|
+
desc "save all staged commits"
|
93
96
|
command :commit do |c|
|
94
97
|
c.action do |global_options,options,args|
|
95
98
|
exit_now!('Must supply a message.') if args.count < 1
|
@@ -97,6 +100,7 @@ command :commit do |c|
|
|
97
100
|
end
|
98
101
|
end
|
99
102
|
|
103
|
+
desc "initialize a new LENSE project"
|
100
104
|
command :init do |c|
|
101
105
|
c.action do
|
102
106
|
puts "Working in #{ENV['PWD']}..."
|
@@ -104,12 +108,14 @@ command :init do |c|
|
|
104
108
|
end
|
105
109
|
end
|
106
110
|
|
111
|
+
desc "show changes since last commit"
|
107
112
|
command :status do |c|
|
108
113
|
c.action do
|
109
114
|
LENSE_APP.status
|
110
115
|
end
|
111
116
|
end
|
112
117
|
|
118
|
+
desc "stage a files changes for committing"
|
113
119
|
command :stage do |c|
|
114
120
|
c.action do |global_options,options,args|
|
115
121
|
exit_now!('Must supply file.') if args.count < 1
|
@@ -117,6 +123,7 @@ command :stage do |c|
|
|
117
123
|
end
|
118
124
|
end
|
119
125
|
|
126
|
+
desc "remove a file from staging"
|
120
127
|
command :unstage do |c|
|
121
128
|
c.action do |global_options,options,args|
|
122
129
|
exit_now!('Must supply file.') if args.count < 1
|
@@ -124,6 +131,7 @@ command :unstage do |c|
|
|
124
131
|
end
|
125
132
|
end
|
126
133
|
|
134
|
+
desc "show a list of commits"
|
127
135
|
command :log do |c|
|
128
136
|
c.action do
|
129
137
|
LENSE_APP.get_commit_log
|
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.3.
|
11
|
+
VERSION = '0.3.6'
|
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')
|