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, Entry, FileStorage

Constant Summary collapse

DOT_SO =
'.so'.freeze
DOT_RB =
'.rb'.freeze
LEADING_SLASH =
'/'.freeze
VERSION =
'0.6.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cacheObject (readonly)

Returns the value of attribute cache.



9
10
11
# File 'lib/bootscale.rb', line 9

def cache
  @cache
end

.cache_directoryObject (readonly)

Returns the value of attribute cache_directory.



9
10
11
# File 'lib/bootscale.rb', line 9

def cache_directory
  @cache_directory
end

Class Method Details

.cache_builderObject



11
12
13
# File 'lib/bootscale.rb', line 11

def cache_builder
  @cache_builder ||= CacheBuilder.new
end

.regenerateObject



15
16
17
# File 'lib/bootscale.rb', line 15

def regenerate
  cache.reload
end

.setup(options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/bootscale.rb', line 19

def setup(options = {})
  @cache_directory = options[:cache_directory]
  @cache = Cache.new(cache_directory)
  require_relative 'bootscale/core_ext'
end