list available templates using "template" alias
This commit is contained in:
@@ -30,8 +30,12 @@ module Dumm
|
|||||||
end
|
end
|
||||||
|
|
||||||
# shortcut for Template loading
|
# shortcut for Template loading
|
||||||
def template(name)
|
def template(name = nil)
|
||||||
Template.load name
|
if name
|
||||||
|
Template.load name
|
||||||
|
else
|
||||||
|
Template.each {|t| puts t }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# unload templates, reset all guests and delete bridges
|
# unload templates, reset all guests and delete bridges
|
||||||
@@ -49,7 +53,7 @@ module Dumm
|
|||||||
# wait until all running guests have booted up
|
# wait until all running guests have booted up
|
||||||
def boot
|
def boot
|
||||||
Guest.each {|g|
|
Guest.each {|g|
|
||||||
g.boot if g.running?
|
g.boot if g.running?
|
||||||
}
|
}
|
||||||
return Dumm
|
return Dumm
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user