class Gem::Commands::SourcesCommand

def remove_cache_file(desc, path) # :nodoc:

:nodoc:
def remove_cache_file(desc, path) # :nodoc:
  FileUtils.rm_rf path
  if !File.exist?(path)
    say "*** Removed #{desc} source cache ***"
  elsif !File.writable?(path)
    say "*** Unable to remove #{desc} source cache (write protected) ***"
  else
    say "*** Unable to remove #{desc} source cache ***"
  end
end