Method: Onboard::Patch#cleanup

Defined in:
lib/onboard/patch.rb

#cleanupObject



20
21
22
23
24
25
# File 'lib/onboard/patch.rb', line 20

def cleanup
  Dir.foreach(dir) do |item|
    file = "#{dir}/#{item}"
    FileUtils.rm_r file if File.zero?(file)
  end
end