Files
strongswan-ext/src/dumm/ext/lib/dumm.rb
T
2009-04-07 14:22:02 +00:00

35 lines
922 B
Ruby

=begin
Copyright (C) 2008 Tobias Brunner
Hochschule fuer Technik Rapperswil
This program 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. See <http://www.fsf.org/copyleft/gpl.txt>.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
$Id$
=end
require 'dumm.so'
require 'dumm/guest'
module Dumm
# unload templates, reset all guests and delete bridges
def reset
Template.unload
Guest.each { |guest|
guest.reset if guest.running?
}
Bridge.each { |bridge|
bridge.delete
}
end
end
# vim:sw=2 ts=2 et