Method: Codger::Manager#uncache
- Defined in:
- lib/codger/manager.rb
#uncache(identifier) ⇒ Object
Remove the specified repo from #cached_base. identifier may be a substring of the desired repo.
99 100 101 102 103 104 105 106 107 |
# File 'lib/codger/manager.rb', line 99 def uncache identifier if match = match_cached_identifier(identifier) @global_settings[:cached].delete match[0] clone = match[1] raise "I'm scared to delete #{clone}" unless clone.size > 10 && clone.start_with?(cached_base) # again, paranoia FileUtils.rm_rf clone save_globals end end |