Class: Facter::SessionCache

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/framework/core/session_cache.rb

Class Method Summary collapse

Class Method Details

.invalidate_all_cachesObject



11
12
13
14
# File 'lib/facter/framework/core/session_cache.rb', line 11

def self.invalidate_all_caches
  @resolvers.uniq.each(&:invalidate_cache)
  @resolvers = []
end

.subscribe(resolver) ⇒ Object



7
8
9
# File 'lib/facter/framework/core/session_cache.rb', line 7

def self.subscribe(resolver)
  @resolvers << resolver
end