added template() shortcut
authorMartin Willi <martin@strongswan.org>
Tue, 7 Apr 2009 17:58:23 +0000 (17:58 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 7 Apr 2009 17:58:23 +0000 (17:58 -0000)
src/dumm/ext/lib/dumm.rb

index 28485e9..770052b 100644 (file)
@@ -31,6 +31,11 @@ module Dumm
     super(id, *args)
   end
   
+  # shortcut for Template loading
+  def template(name)
+    Template.load name
+  end
+  
   # unload templates, reset all guests and delete bridges
   def reset
     Template.unload