Method: VirtualBox::MediumAttachment#detach
- Defined in:
- lib/virtualbox/medium_attachment.rb
#detach ⇒ Object
Detaches the medium from it’s parent virtual machine. Note that this **does not delete** the medium which this attachment references; it merely removes the assocation of said medium with this attachment’s virtual machine.
46 47 48 49 50 51 52 |
# File 'lib/virtualbox/medium_attachment.rb', line 46 def detach parent.with_open_session do |session| machine = session.machine machine.detach_device(storage_controller.name, port, device) end end |