Method: Paste::Cache#rebuild

Defined in:
lib/paste/cache.rb

#rebuildObject



7
8
9
10
11
12
13
# File 'lib/paste/cache.rb', line 7

def rebuild
  find_sources

  @sources.reject!{ |_, parser| !File.exists? parser.file }

  @sources.values.each &:copy_if_needed
end