strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47a9a48
)
list available templates using "template" alias
author
Martin Willi
<martin@strongswan.org>
Mon, 11 May 2009 15:20:01 +0000
(17:20 +0200)
committer
Martin Willi
<martin@strongswan.org>
Mon, 11 May 2009 15:20:01 +0000
(17:20 +0200)
src/dumm/ext/lib/dumm.rb
patch
|
blob
|
history
diff --git
a/src/dumm/ext/lib/dumm.rb
b/src/dumm/ext/lib/dumm.rb
index
70ad4dd
..
25939e9
100644
(file)
--- 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