1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #661: Add instantiate template command

This commit is contained in:
Daniel Molina 2011-06-10 20:01:15 +02:00
parent 683fc67d5a
commit b4f57b222e

View File

@ -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