class Crabfarm::Engines::SyncStateManager
Attributes
context[R]
Public Class Methods
new(_context)
click to toggle source
# File lib/crabfarm/engines/sync_state_manager.rb, line 9 def initialize(_context) @context = _context @lock = Mutex.new end
Public Instance Methods
reload()
click to toggle source
# File lib/crabfarm/engines/sync_state_manager.rb, line 14 def reload @lock.synchronize { ActiveSupport::Dependencies.clear @context.reset } end
reset()
click to toggle source
# File lib/crabfarm/engines/sync_state_manager.rb, line 21 def reset @lock.synchronize { @context.reset } end