method
remove_cache_file
v2_5_5 -
Show latest stable
- Class:
Gem::Commands::SourcesCommand
remove_cache_file(desc, path)public
No documentation available.
# File lib/rubygems/commands/sources_command.rb, line 198
def remove_cache_file desc, path # :nodoc:
FileUtils.rm_rf path
if not File.exist?(path) then
say "*** Removed #{desc} source cache ***"
elsif not File.writable?(path) then
say "*** Unable to remove #{desc} source cache (write protected) ***"
else
say "*** Unable to remove #{desc} source cache ***"
end
end