dev 2.0.260 → 2.0.261
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/lib/base/project.rb +22 -0
- data/lib/base/projects.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: fb58dbed1ac1d594fe98705ca53b088fca3e88c0
|
4
|
+
data.tar.gz: 1f76a78a7c00d31366a7581855b97653c8db9fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c67202193c2a3ee574e9fe54aa19c27230ecd15e71dd5a722f47e589e2f7745001973ad0da01aeda0854b8870609bcbefc303db3e6ef92b64914f0b9a06c0a3
|
7
|
+
data.tar.gz: f64aecb021321fda141ef098d6f6c5a7ccb02e6f1634f82e2e674284858f7bbf8b8f2808f67ddc7ba38807645f28c6ea80fccc7ca18cae87dbb84d0dc057dd30
|
data/lib/base/project.rb
CHANGED
@@ -185,6 +185,28 @@ class Project < Hash
|
|
185
185
|
nil
|
186
186
|
end
|
187
187
|
|
188
|
+
def status
|
189
|
+
status='?'
|
190
|
+
wrk_logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
|
191
|
+
if(File.exists(wrk_logfile))
|
192
|
+
rake_default=Command.new(JSON.parse(IO.read(wrk_logfile)))
|
193
|
+
status='0'
|
194
|
+
return 'X' if rake_default[:exit_code] != 0
|
195
|
+
end
|
196
|
+
make_logfile="#{Environment.dev_root}/log/#{self.fullname}/#{latest_tag}/#{Environment.user}@#{Environment.machine}.json"
|
197
|
+
if(File.exists?(make_logfile))
|
198
|
+
rake_default=Command.new(JSON.parse(IO.read(make_logfile)))
|
199
|
+
status='0'
|
200
|
+
return 'X' if rake_default[:exit_code] != 0
|
201
|
+
else
|
202
|
+
return '?' # outstanding make
|
203
|
+
end
|
204
|
+
status
|
205
|
+
end
|
206
|
+
|
207
|
+
def report
|
208
|
+
end
|
209
|
+
|
188
210
|
def work
|
189
211
|
clone
|
190
212
|
checkout
|
data/lib/base/projects.rb
CHANGED
@@ -35,7 +35,7 @@ class Projects < Hash
|
|
35
35
|
|
36
36
|
def list filter=''
|
37
37
|
self.each{|k,v|
|
38
|
-
puts k if(filter.length == 0 || k.include?(filter))
|
38
|
+
puts "#{v.status} #{k}" if(filter.length == 0 || k.include?(filter))
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,10 +61,10 @@ class Projects < Hash
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def work args
|
64
|
-
filter=
|
64
|
+
filter=nil
|
65
65
|
filter=args[1] if !args.nil? && args.length > 0
|
66
66
|
self.each{|k,v|
|
67
|
-
if filter.nil? || filter.length==0 || k.include?(filter)
|
67
|
+
if filter.nil? || filter.length==0 || k.to_s.include?(filter)
|
68
68
|
last_work_time=nil
|
69
69
|
v.work
|
70
70
|
end
|