dev 2.0.244 → 2.0.245
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base/project.rb +9 -14
- data/lib/base/projects.rb +1 -12
- data/lib/tasks/clean.rb +0 -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: 0696af802caea5a3ca7d2a2250ec53b1c42924fc
|
4
|
+
data.tar.gz: 0bbec77ed386b550e870a2795ba79a65d09540f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f336fc23c98eb4def911dafd9b536f92812a1b8748c560be14d4d353dbe1be9afa2c13256af1fef5bfa7ddddcee978c25091856764bbf51008abe27eeaa27eb
|
7
|
+
data.tar.gz: 52d6d686e2b3f692b2e21ec9ae70e9464f9d09019d2c46a4a25a4ec76b822c7d687ba4805ac0978af40cd0a164e171a6282e1f555fde9ca332c25d48227a93ff
|
data/lib/base/project.rb
CHANGED
@@ -94,20 +94,6 @@ class Project < Hash
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
-
def fails
|
98
|
-
Dir.chdir("#{Environment.dev_root}/log/#{self.fullname}") do
|
99
|
-
Dir.glob("**/#{Environment.user}@#{Environment.machine}.json").each{|logfile|
|
100
|
-
command=Command.new
|
101
|
-
command.open(logfile)
|
102
|
-
if(command.has_key?(:exit_code) && command[:exit_code] != 0)
|
103
|
-
puts command[:directory]
|
104
|
-
end
|
105
|
-
}
|
106
|
-
end
|
107
|
-
#wrk_logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
|
108
|
-
#logfile="#{Environment.dev_root}/log/#{self.fullname}/#{tag}/#{Environment.user}@#{Environment.machine}.json"
|
109
|
-
end
|
110
|
-
|
111
97
|
def info
|
112
98
|
puts "Project #{name}"
|
113
99
|
puts "#{'fullname'.fix(13)}: #{self.fullname}"
|
@@ -202,6 +188,7 @@ class Project < Hash
|
|
202
188
|
if(File.exists?(wrk_dir))
|
203
189
|
if(last_work_mtime.nil? || last_work_mtime < Environment.get_latest_mtime(wrk_dir))
|
204
190
|
Dir.chdir(wrk_dir) do
|
191
|
+
puts "working #{k}"
|
205
192
|
rake_default=Command.new('rake default')
|
206
193
|
rake_default[:quiet]=true
|
207
194
|
rake_default[:ignore_failure]=true
|
@@ -210,7 +197,15 @@ class Project < Hash
|
|
210
197
|
logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
|
211
198
|
FileUtils.mkdir_p(File.dirname(logfile)) if !File.exists?(File.dirname(logfile))
|
212
199
|
File.open(logfile,'w'){|f|f.write(rake_default.to_json)}
|
200
|
+
puts rake_default.summary
|
213
201
|
end
|
202
|
+
else
|
203
|
+
logfile="#{Environment.dev_root}/log/#{self.fullname}/#{Environment.user}@#{Environment.machine}.json"
|
204
|
+
if(File.exists?(logfile))
|
205
|
+
rake_default=Command.new
|
206
|
+
rake_default.open logfile
|
207
|
+
puts rake_default.summary
|
208
|
+
end
|
214
209
|
end
|
215
210
|
end
|
216
211
|
end
|
data/lib/base/projects.rb
CHANGED
@@ -60,23 +60,12 @@ class Projects < Hash
|
|
60
60
|
if filter.nil? || filter.length==0 || k.include?(filter)
|
61
61
|
log_filename=
|
62
62
|
last_work_time=nil
|
63
|
-
puts "working #{k}"
|
63
|
+
#puts "working #{k}"
|
64
64
|
v.work
|
65
65
|
end
|
66
66
|
}
|
67
67
|
end
|
68
68
|
|
69
|
-
def fails args
|
70
|
-
filter=''
|
71
|
-
filter=args[1] if !args.nil? && args.length > 0
|
72
|
-
self.each{|k,v|
|
73
|
-
if filter.nil? || filter.length==0 || k.include?(filter)
|
74
|
-
log_filename=
|
75
|
-
v.fails
|
76
|
-
end
|
77
|
-
}
|
78
|
-
end
|
79
|
-
|
80
69
|
def self.user_projects_filename
|
81
70
|
FileUtils.mkdir("#{Environment.dev_root}/data") if(!File.exists?("#{Environment.dev_root}/data"))
|
82
71
|
"#{Environment.dev_root}/data/PROJECTS.json"
|
data/lib/tasks/clean.rb
CHANGED