Method: Tml::Cache#default_cache_path
- Defined in:
- lib/tml/cache.rb
#default_cache_path ⇒ Object
default cache path
230 231 232 233 234 235 236 237 238 |
# File 'lib/tml/cache.rb', line 230 def default_cache_path @cache_path ||= begin path = Tml.config.cache[:path] path ||= 'config/tml' FileUtils.mkdir_p(path) FileUtils.chmod(0777, path) path end end |