From 626ae2cf35aba2c9df2b998e4b0901ee760ddc60 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 9 May 2012 17:02:16 +0200 Subject: [PATCH] feature #1055: Reset command for onevm --- src/cli/onevm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cli/onevm b/src/cli/onevm index ddf1d7d52f..720d7a1f84 100755 --- a/src/cli/onevm +++ b/src/cli/onevm @@ -195,6 +195,18 @@ cmd=CommandParser::CmdParser.new(ARGV) do end end + reset_desc = <<-EOT.unindent + Resets the given VM + + States: RUNNING + EOT + + command :reset, reset_desc, [:range,:vmid_list] do + helper.perform_actions(args[0],options,"resetting") do |vm| + vm.reset + end + end + deploy_desc = <<-EOT.unindent Deploys the given VM in the specified Host. This command forces the deployment, in a standard installation the Scheduler is in charge