lib/veewee/provider/virtualbox/box/helper/buildinfo.rb in veewee-0.3.1 vs lib/veewee/provider/virtualbox/box/helper/buildinfo.rb in veewee-0.3.2
- old
+ new
@@ -12,12 +12,15 @@
# Transfer information provide by the provider to the box
#
#
def transfer_buildinfo(options)
super(options)
- iso_image="VBoxGuestAdditions_#{self.vboxga_version}.iso"
- env.logger.info "About to transfer virtualbox guest additions iso to the box #{name} - #{ip_address} - #{ssh_options}"
- self.scp("#{File.join(env.config.veewee.iso_dir,iso_image)}",File.basename(iso_image))
+ # with windows, we just use the mounted volume
+ if not (definition.winrm_user && definition.winrm_password)
+ iso_image="VBoxGuestAdditions_#{self.vboxga_version}.iso"
+ env.logger.info "About to transfer virtualbox guest additions iso to the box #{name} - #{ip_address} - #{ssh_options}"
+ self.copy_to_box("#{File.join(env.config.veewee.iso_dir,iso_image)}",File.basename(iso_image))
+ end
end
end
end
end