From e7dc498c17787946fdef59684c00bf956f2e2715 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 12 Mar 2011 01:43:48 +0100 Subject: [PATCH] Added the 'dummy' domain backend (for testing/debugging purposes. --- lib/ildus/server/domain_backends/dummy.rb | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/ildus/server/domain_backends/dummy.rb diff --git a/lib/ildus/server/domain_backends/dummy.rb b/lib/ildus/server/domain_backends/dummy.rb new file mode 100644 index 0000000..40d8e2f --- /dev/null +++ b/lib/ildus/server/domain_backends/dummy.rb @@ -0,0 +1,31 @@ +# = ildus/server/backend/dummy - dummy domain backend library +# +# Copyright (C) 2011 Paul van Tilburg +# +# Ildus is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2 of the License, or (at your option) +# any later version. + +module Ildus::Server::DomainBackend + + # = Dummy domain backend + # + # The domain backend class that is just a dummy for testing purposes. + class Dummy < Basic + + def commit + puts "Committing..." + end + + def hosts + Hash.new + end + + def update_host(host, addr) + puts "Update host #{host} with address #{addr}." + end + + end # class Dummy + +end # module Ildus::Server::DomainBackend