lib/vagrant/ssd/actions.rb
# Creates infix for VBoxManage commands (driver.execute)
# according to VirtualBox version
Creates infix for VBoxManage commands (driver.execute)
according to VirtualBox version
Creates infix for VBoxManage commands ( driver . execute ) according to VirtualBox version
def identify_disks(driver)
            vminfo = get_vminfo(driver)
            disks = []
            disk_keys = vminfo.keys.select { |k| k =~ /-ImageUUID-/ }
            disk_keys.each do |key|
              uuid = vminfo[key]
              if is_disk(driver, uuid)
                disk_name = key.gsub(/-ImageUUID-/,'-')
                disk_file = vminfo[disk_name]
                disks << {
                  uuid: uuid,
                  name: disk_name,
                  file: disk_file
                }
              end
            end
            disks
          end
def identify_disks ( driver ) vminfo = get_vminfo ( driver ) disks = [ ] disk_keys = vminfo . keys . select { | k | k =~ / -ImageUUID- / } disk_keys . each do | key | uuid = vminfo [ key ] if is_disk ( driver , uuid ) disk_name = key . gsub ( / -ImageUUID- / , '-' ) disk_file = vminfo [ disk_name ] disks << { uuid : uuid , name : disk_name , file : disk_file } end end disks end
Creates infix for VBoxManage commands (driver.execute)
according to VirtualBox version
Creates infix for VBoxManage commands ( driver . execute ) according to VirtualBox version
driver