Module: Bootscale
- Defined in:
- lib/bootscale.rb,
lib/bootscale/cache.rb,
lib/bootscale/entry.rb,
lib/bootscale/utils.rb,
lib/bootscale/version.rb,
lib/bootscale/file_storage.rb,
lib/bootscale/cache_builder.rb,
lib/bootscale/active_support.rb
Defined Under Namespace
Modules: ActiveSupport, Utils Classes: Cache, CacheBuilder, DevelopmentCache, Entry, FileStorage
Constant Summary collapse
- DOT_SO =
'.so'.freeze
- DOT_RB =
'.rb'.freeze
- LEADING_SLASH =
'/'.freeze
- VERSION =
'0.7.0'
Class Attribute Summary collapse
-
.cache ⇒ Object
readonly
Returns the value of attribute cache.
-
.cache_directory ⇒ Object
readonly
Returns the value of attribute cache_directory.
-
.logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Class Attribute Details
.cache ⇒ Object (readonly)
Returns the value of attribute cache.
10 11 12 |
# File 'lib/bootscale.rb', line 10 def cache @cache end |
.cache_directory ⇒ Object (readonly)
Returns the value of attribute cache_directory.
10 11 12 |
# File 'lib/bootscale.rb', line 10 def cache_directory @cache_directory end |
.logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/bootscale.rb', line 11 def logger @logger end |
Class Method Details
.cache_builder ⇒ Object
13 14 15 |
# File 'lib/bootscale.rb', line 13 def cache_builder @cache_builder ||= CacheBuilder.new end |
.regenerate ⇒ Object
17 18 19 |
# File 'lib/bootscale.rb', line 17 def regenerate cache.reload end |
.setup(options = {}) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/bootscale.rb', line 21 def setup( = {}) @cache_directory = [:cache_directory] cache_implementation = .fetch(:development_mode, false) ? DevelopmentCache : Cache @cache = cache_implementation.new(cache_directory) require_relative 'bootscale/core_ext' end |