somewhat less breaky. -- need to apply todb's patches yet, and make sure this is working with the lab plugin

git-svn-id: file:///home/svn/framework3/trunk@11711 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Jonathan Cran 2011-02-04 09:17:11 +00:00
parent 57d56b7e94
commit 7a606033ea
3 changed files with 8 additions and 18 deletions

View File

@ -153,7 +153,7 @@ class RemoteWorkstationDriver < VmDriver
end
end
return false
false
end
end

View File

@ -97,20 +97,13 @@ class Vm
@driver.snapshot(name)
end
## revert needs to restore the current state of the machine
## meaning, if it's running when revert is called
## we'll want to restart it after reverting it.
def revert(name)
start = false
if running?
start = true
end
@driver.revert(name)
if start
@driver.start
end
def revert(snapshot)
@driver.revert(snapshot)
end
def revert_and_start(snapshot)
self.revert(snapshot)
self.start
end
def copy_to(from_file,to_file)

View File

@ -110,9 +110,6 @@ class VmDriver
def system_command(command)
## TODO - filter here
puts "DEBUG: running system command: #{command}"
system(command)
end