From b4f57b222e82a261320584d8dacaaff2cd785484 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 10 Jun 2011 20:01:15 +0200 Subject: [PATCH] feature #661: Add instantiate template command --- src/cli/onetemplate | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cli/onetemplate b/src/cli/onetemplate index 991cd4cec6..62f5908350 100755 --- a/src/cli/onetemplate +++ b/src/cli/onetemplate @@ -91,6 +91,12 @@ cmd=CommandParser::CmdParser.new(ARGV) do helper.list_pool(options) end + command :instantiate, 'Instantiates a Template', [:range,:templateid_list] do + helper.perform_actions(args[0],options,"instantiated") do |t| + t.instantiate + end + end + command :publish, 'Publishes a Template', [:range,:imageid_list] do helper.perform_actions(args[0],options,"published") do |t| t.publish