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