1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-06-26 22:30:19 +02:00
This commit is contained in:
cn
2013-04-27 14:07:14 +02:00
commit 755a448174
18 changed files with 615 additions and 0 deletions

View File

@ -0,0 +1,29 @@
require 'forwardable'
module Dyndnsd
class DummyDatabase
extend Forwardable
def_delegators :@db, :[], :[]=, :each, :has_key?
def initialize(db_init)
@db_init = db_init
end
def load
@db = @db_init
@db_hash = @db.hash
end
def save
@db_hash = @db.hash
end
def changed?
@db_hash != @db.hash
end
end
end