Class: Bootscale::DevelopmentCache
- Defined in:
- lib/bootscale/cache.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Cache
#initialize, #load_path, #reload
Constructor Details
This class inherits a constructor from Bootscale::Cache
Instance Method Details
#[](path) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/bootscale/cache.rb', line 54 def [](path) absolute_path = super if absolute_path && !::File.exist?(absolute_path) Bootscale.logger.info { "[Bootscale] #{absolute_path} is missing, regenerating cache" } regenerate(true) return super end absolute_path end |