aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-05-11 17:20:01 +0200
committerMartin Willi <martin@strongswan.org>2009-05-11 17:20:01 +0200
commit5d47f284b8574b3375809057b3836ec1be0a1d69 (patch)
tree907c02ec575a60f14a2396c4c8e90ec0017b441a /src
parent47a9a48f5bf69ac50d511ba3762dd11b2b9c20b4 (diff)
downloadstrongswan-5d47f284b8574b3375809057b3836ec1be0a1d69.tar.bz2
strongswan-5d47f284b8574b3375809057b3836ec1be0a1d69.tar.xz
list available templates using "template" alias
Diffstat (limited to 'src')
-rw-r--r--src/dumm/ext/lib/dumm.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dumm/ext/lib/dumm.rb b/src/dumm/ext/lib/dumm.rb
index 70ad4ddf4..25939e9f4 100644
--- a/src/dumm/ext/lib/dumm.rb
+++ b/src/dumm/ext/lib/dumm.rb
@@ -30,8 +30,12 @@ module Dumm
end
# shortcut for Template loading
- def template(name)
- Template.load name
+ def template(name = nil)
+ if name
+ Template.load name
+ else
+ Template.each {|t| puts t }
+ end
end
# unload templates, reset all guests and delete bridges
@@ -49,7 +53,7 @@ module Dumm
# wait until all running guests have booted up
def boot
Guest.each {|g|
- g.boot if g.running?
+ g.boot if g.running?
}
return Dumm
end