Module: UtilityPack::InternetExplorerHelpers

Includes:
Win32
Defined in:
lib/utility_pack/ie.rb

Constant Summary collapse

CACHE_DIRECTORIES =
[
  "c:/windows/Temporary Internet Files",
  "C:/Documents and Settings/#{ENV['USERNAME']}/Local Settings/Temporary Internet Files"
]

Class Method Summary collapse

Class Method Details

.clear_cacheObject



12
13
14
15
16
# File 'lib/utility_pack/ie.rb', line 12

def self.clear_cache
  CACHE_DIRECTORIES.each do |dir|
    FileHelpers.delete Dir["#{dir}/**/*"] if File.exists?(dir)
  end
end