exe/conoha in conoha-0.9.0 vs exe/conoha in conoha-0.9.1
- old
+ new
@@ -86,9 +86,16 @@
exit 1 if ARGV.size != 1
puts Conoha.boot server_id(ARGV.first)
when 'shutdown'
exit 1 if ARGV.size != 1
puts Conoha.shutdown server_id(ARGV.first)
+when 'reboot'
+ exit 1 if ARGV.size < 1
+ if ARGV[1] == 'hard' || ARGV[1] == 'HARD'
+ puts Conoha.reboot server_id(ARGV.first), 'HARD'
+ else
+ puts Conoha.reboot server_id(ARGV.first)
+ end
when 'imagelist'
pp Conoha.images
when 'imagecreate'
exit 1 if ARGV.size != 2
name = ARGV[1]