Class: RGen::Util::FileCacheMap

Inherits:
Object
  • Object
show all
Defined in:
lib/common/ext/rgen.rb

Instance Method Summary collapse

Instance Method Details

#orig_store_dataObject



5
# File 'lib/common/ext/rgen.rb', line 5

alias_method :orig_store_data, :store_data

#store_data(key_path, value_data) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/common/ext/rgen.rb', line 6

def store_data(key_path, value_data)
  begin
    orig_store_data(key_path, value_data)
  rescue Exception=>e
    if Bake.options.verbose >= 3
      cf = cache_file(key_path)
      Bake.formatter.printWarning("Warning: Could not write cache file #{cf}")
      if Bake.options.debug
        puts e.message
        puts e.backtrace
      end
    end
  end
end