dev 1.0.160 → 1.0.161
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dev/SystemCall.rb +10 -0
- data/lib/dev/Tasks.rb +1 -0
- metadata +1 -1
data/lib/dev/SystemCall.rb
CHANGED
@@ -169,6 +169,16 @@ class SystemCall
|
|
169
169
|
return status,output,error
|
170
170
|
end
|
171
171
|
|
172
|
+
def self.clean_tmp_files
|
173
|
+
puts "clean temporary files in #{Dir.tmpdir}"
|
174
|
+
Dir.glob("#{Dir.tmpdir}/*.{out,err}").each{ |f|
|
175
|
+
begin
|
176
|
+
FileUtils.rm(f)
|
177
|
+
rescue
|
178
|
+
warn "unable to remove file #{f}.err"
|
179
|
+
end
|
180
|
+
}
|
181
|
+
end
|
172
182
|
|
173
183
|
def puts_summary
|
174
184
|
if(@status != 0)
|
data/lib/dev/Tasks.rb
CHANGED