class Packer::Builder::VMWareVMX

Public Class Methods

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

Public Instance Methods

boot_command(commands) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 18
def boot_command(commands)
  __add_array_of_strings('boot_command', commands)
end
boot_wait(wait) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 22
def boot_wait(wait)
  __add_string('boot_wait', wait)
end
floppy_files(files) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 26
def floppy_files(files)
  __add_array_of_strings('floppy_files', files)
end
fusion_app_path(app_path) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 30
def fusion_app_path(app_path)
  __add_string('fusion_app_path', app_path)
end
headless(bool) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 34
def headless(bool)
  __add_boolean('headless', bool)
end
http_directory(path) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 38
def http_directory(path)
  __add_string('http_directory', path)
end
http_port_max(port) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 46
def http_port_max(port)
  __add_integer('http_port_max', port)
end
http_port_min(port) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 42
def http_port_min(port)
  __add_integer('http_port_min', port)
end
output_directory(path) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 50
def output_directory(path)
  __add_string('output_directory', path)
end
shutdown_command(command) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 54
def shutdown_command(command)
  __add_string('shutdown_command', command)
end
shutdown_timeout(timeout) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 58
def shutdown_timeout(timeout)
  __add_string('shutdown_timeout', timeout)
end
skip_compaction(bool) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 62
def skip_compaction(bool)
  __add_boolean('skip_compaction', bool)
end
source_path(path) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 14
def source_path(path)
  __add_string('source_path', path)
end
vm_name(name) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 66
def vm_name(name)
  __add_string('vm_name', name)
end
vmx_data(data_hash) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 70
def vmx_data(data_hash)
  __add_hash('vmx_data', data_hash)
end
vmx_data_post(data_hash) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 74
def vmx_data_post(data_hash)
  __add_hash('vmx_data_post', data_hash)
end
vnc_port_max(port) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 82
def vnc_port_max(port)
  __add_integer('vnc_port_max', port)
end
vnc_port_min(port) click to toggle source
# File lib/packer/builders/vmware_vmx.rb, line 78
def vnc_port_min(port)
  __add_integer('vnc_port_min', port)
end