lense 0.3.5 → 0.3.6

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 +14 -6
  3. data/lib/lense.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 642ab2773ac88e2bdb4611728d7aacbb5d86d28f
4
- data.tar.gz: 5f0dda0541b7e275e40cd0e92b5ae846f9e8096c
3
+ metadata.gz: 3fd5dc3afe6611310d5a57bc524c4b4d75649660
4
+ data.tar.gz: 75b95815fc150bf324d65e8c19ceeb637fa5489a
5
5
  SHA512:
6
- metadata.gz: a9cd873d9a086d5ebe96bdf124eff6981f5fcc606032ecd79a0118f6942730bdd2cf60249061a725cbaf4de5346fc611633af821e12967689c15e104f1c244e0
7
- data.tar.gz: 66514ee20f80fd94d403d09ad3d0bebaf34df6c4ad73231d528e343344146739e53918d1834ac795ea697781bf5058af94fc4b9029fde44c73f8471c3a74f4df
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
- command :destroy do |c|
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
@@ -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.5'
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')
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta