class Packer::Builder::VirtualBoxISO

Public Class Methods

new() click to toggle source
Calls superclass method Packer::Builder::new
# File lib/packer/builders/virtualbox.rb, line 8
def initialize
  super
  self.data['type'] = VIRTUALBOX_ISO
  self.add_required(
    'iso_checksum',
    'iso_checksum_type',
    'iso_url',
    'communicator'
  )
  self.communicators = %w(none ssh winrm)
end

Public Instance Methods

boot_command(commands) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 36
def boot_command(commands)
  self.__add_array_of_strings('boot_command', commands)
end
boot_wait(time) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 40
def boot_wait(time)
  self.__add_string('boot_wait',time)
end
disk_size(megabytes) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 44
def disk_size(megabytes)
  self.__add_integer('disk_size', megabytes)
end
export_opts(vboxmanage_export_options) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 48
def export_opts(vboxmanage_export_options)
  self.__add_array_of_strings('export_opts', vboxmanage_export_options)
end
floppy_files(files) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 52
def floppy_files(files)
  self.__add_array_of_strings('floppy_files', files)
end
format(format) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 56
def format(format)
  self.__add_string('format', format)
end
guest_additions_mode(mode) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 60
def guest_additions_mode(mode)
  self.__add_string('guest_additions_mode', mode)
end
guest_additions_path(path) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 64
def guest_additions_path(path)
  self.__add_string('guest_additions_path', path)
end
guest_additions_sha256(checksum) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 68
def guest_additions_sha256(checksum)
  self.__add_string('guest_additions_sha256', checksum)
end
guest_additions_url(url) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 72
def guest_additions_url(url)
  self.__add_string('guest_additions_url', url)
end
guest_os_type(ostype) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 76
def guest_os_type(ostype)
  self.__add_string('guest_os_type', ostype)
end
hard_drive_interface(controllertype) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 80
def hard_drive_interface(controllertype)
  self.__add_string('hard_drive_interface', controllertype)
end
headless(bool) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 84
def headless(bool)
  self.__add_boolean('headless', bool)
end
http_directory(directory) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 88
def http_directory(directory)
  self.__add_string('http_directory', directory)
end
http_port_max(port_number) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 96
def http_port_max(port_number)
  self.__add_integer('http_port_max', port_number)
end
http_port_min(port_number) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 92
def http_port_min(port_number)
  self.__add_integer('http_port_min', port_number)
end
iso_checksum(checksum) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 20
def iso_checksum(checksum)
  self.__add_string('iso_checksum', checksum)
end
iso_checksum_type(type) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 24
def iso_checksum_type(type)
  self.__add_string('iso_checksum_type', type)
end
iso_url(url) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 28
def iso_url(url)
  self.__add_string('iso_url', url, %w[iso_urls])
end
iso_urls(urls) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 32
def iso_urls(urls)
  self.__add_array_of_strings('iso_urls', urls, %[iso_url])
end
output_directory(directory) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 100
def output_directory(directory)
  self.__add_string('output_directory', directory)
end
shutdown_command(command) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 104
def shutdown_command(command)
  self.__add_string('shutdown_command', command)
end
shutdown_timeout(time) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 108
def shutdown_timeout(time)
  self.__add_string('shutdown_timeout', time)
end
vboxmanage(array_of_commands) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 112
def vboxmanage(array_of_commands)
  self.__add_array_of_array_of_strings('vboxmanage', array_of_commands)
end
vboxmanage_post(array_of_commands) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 116
def vboxmanage_post(array_of_commands)
  self.__add_array_of_array_of_strings('vboxmanage_post', array_of_commands)
end
virtualbox_version_file(file) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 120
def virtualbox_version_file(file)
  self.__add_string('virtualbox_version_file', file)
end
vm_name(name) click to toggle source
# File lib/packer/builders/virtualbox.rb, line 124
def vm_name(name)
  self.__add_string('vm_name', name)
end