lib/veewee/provider/vmfusion/box/helper/buildinfo.rb in veewee-0.3.1 vs lib/veewee/provider/vmfusion/box/helper/buildinfo.rb in veewee-0.3.2
- old
+ new
@@ -38,15 +38,18 @@
super(options)
# When we get here, ssh is available and no postinstall scripts have been executed yet
# So we begin by transferring the ISO file of the vmware tools
- env.logger.info "About to transfer vmware tools iso buildinfo to the box #{name} - #{ip_address} - #{ssh_options}"
- iso_image=guest_iso_path
- if File.exists?(iso_image)
- self.scp(iso_image,File.basename(iso_image))
- else
- raise Veewee::Error, "We could not find the file #{iso_image}. In newer versions of Fusion, you might have to download the Guest Additions yourself. You can do this by first manually creating a vm and than 'installing the guest additions'"
+ if not (definition.winrm_user && definition.winrm_password)
+ # with windows, we just use the mounted volume
+ env.logger.info "About to transfer vmware tools iso buildinfo to the box #{name} - #{ip_address} - #{ssh_options}"
+ iso_image=guest_iso_path
+ if File.exists?(iso_image)
+ self.copy_to_box(iso_image,File.basename(iso_image))
+ else
+ raise Veewee::Error, "We could not find the file #{iso_image}. In newer versions of Fusion, you might have to download the Guest Additions yourself. You can do this by first manually creating a vm and than 'installing the guest additions'"
+ end
end
end
end
end