libraries/madeleine_service.rb in Pimki-1.0.092 vs libraries/madeleine_service.rb in Pimki-1.1.092
- old
+ new
@@ -1,9 +1,9 @@
require 'madeleine/automatic'
require 'madeleine'
require 'singleton'
-require 'YAML'
+require 'yaml'
class MadeleineService
include Madeleine::Automatic::Interceptor
@@storage_path = self.name.downcase + "_storage"
@@ -32,10 +32,10 @@
end
end
end
class MadeleineServer
- SNAPSHOT_INTERVAL = 60 * 60 # Each hour * 24 # Each day
+ SNAPSHOT_INTERVAL = 60 * 60 * 24 # seconds * minutes * hours => Each day
AUTOMATIC_SNAPSHOTS = true
# Clears all the command_log and snapshot files located in the storage directory, so the
# database is essentially dropped and recreated as blank
def self.clean_storage(service)
\ No newline at end of file