Sha256: f755b23fc4e5e4566412cae77acd68d72e5e75906ef5e133f26f92d74244ef18
Contents?: true
Size: 938 Bytes
Versions: 8
Compression:
Stored size: 938 Bytes
Contents
module Flexite class Configuration attr_accessor :paths, :root_cache_key, :source_roots, :hierarchy attr_accessor :app_link, :app_name, :history_limit, :migration_token attr_accessor :diff_depth_separator, :async_diff_handler, :diff_approach attr_accessor :stagename, :stages, :cache_matcher attr_reader :cache def initialize @paths = {} @root_cache_key = 'all-cached-nodes' @cache = ActiveSupport::Cache::MemoryStore.new(size: 64.megabytes) @app_link = '/' @source_roots = {} @hierarchy = {} @history_limit = 10 @diff_depth_separator = ' -> ' @diff_approach = :sync @stages = [] @cache_matcher = -> (pattern) { Regexp.new(pattern) } end def cache_store=(*args) @cache = ActiveSupport::Cache.lookup_store(*args) if @cache.options[:namespace].blank? @cache.options[:namespace] = :flexite end end end end
Version data entries
8 entries across 8 versions & 1 rubygems