Method: MadeleineServer#initialize
- Defined in:
- app/models/wiki_service.rb
#initialize(service) ⇒ MadeleineServer
Returns a new instance of MadeleineServer.
182 183 184 185 186 187 188 189 |
# File 'app/models/wiki_service.rb', line 182 def initialize(service) @storage_path = service.storage_path @server = Madeleine::Automatic::AutomaticSnapshotMadeleine.new(service.storage_path, Madeleine::ZMarshal.new) { service.new } start_snapshot_thread end |