     $wait xapi.call 'VM.hard_reboot', vm.ref
 
   return true
-exports.restart.params = {
+
+restart.params = {
   id: { type: 'string' }
   force: { type: 'boolean' }
 }
-exports.restart.resolve = {
+
+restart.resolve = {
   vm: ['id', 'VM']
 }
 
-exports.clone = $coroutine ({vm, name, full_copy}) ->
+exports.restart = restart
+
+#---------------------------------------------------------------------
+
+clone = $coroutine ({vm, name, full_copy}) ->
   xapi = @getXAPI vm
   if full_copy
     $wait xapi.call 'VM.copy', vm.ref, name, ''

  memory: { type: 'integer', optional: true }
}

exports.restart = $coroutine ({vm, force}) ->
  xapi = @getXAPI(vm)

  try

  )

  return true

migratePool.params = {

  # Identifier of the VM to migrate.
  id: { type: 'string' }
