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-b9f4589650daunstable
parent
57d56b7e94
commit
7a606033ea
|
@ -153,7 +153,7 @@ class RemoteWorkstationDriver < VmDriver
|
|||
end
|
||||
end
|
||||
|
||||
return false
|
||||
false
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -110,9 +110,6 @@ class VmDriver
|
|||
|
||||
def system_command(command)
|
||||
## TODO - filter here
|
||||
|
||||
puts "DEBUG: running system command: #{command}"
|
||||
|
||||
system(command)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue