dev 1.0.160 → 1.0.161
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.
- 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