Class: Packer::Builder::VMWareVMX
Constant Summary
AMAZON_EBS, AMAZON_INSTANCE, DOCKER, NULL, VALID_BUILDER_TYPES, VIRTUALBOX_ISO, VMWARE_ISO, VMWARE_VMX
Instance Attribute Summary
Attributes inherited from DataObject
#data, #required
Instance Method Summary
collapse
get_builder, #name, types
Methods inherited from DataObject
#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_string, #__exclusive_key_error, #add_required, #deep_copy, #validate
Constructor Details
Returns a new instance of VMWareVMX.
4
5
6
7
8
9
10
11
|
# File 'lib/packer/builders/vmware_vmx.rb', line 4
def initialize
super
data['type'] = VMWARE_VMX
add_required(
'source_path',
'ssh_username'
)
end
|
Instance Method Details
#boot_command(commands) ⇒ Object
25
26
27
|
# File 'lib/packer/builders/vmware_vmx.rb', line 25
def boot_command(commands)
__add_array_of_strings('boot_command', commands)
end
|
#boot_wait(wait) ⇒ Object
29
30
31
|
# File 'lib/packer/builders/vmware_vmx.rb', line 29
def boot_wait(wait)
__add_string('boot_wait', wait)
end
|
#floppy_files(files) ⇒ Object
33
34
35
|
# File 'lib/packer/builders/vmware_vmx.rb', line 33
def floppy_files(files)
__add_array_of_strings('floppy_files', files)
end
|
#fusion_app_path(app_path) ⇒ Object
37
38
39
|
# File 'lib/packer/builders/vmware_vmx.rb', line 37
def fusion_app_path(app_path)
__add_string('fusion_app_path', app_path)
end
|
#headless(bool) ⇒ Object
41
42
43
|
# File 'lib/packer/builders/vmware_vmx.rb', line 41
def headless(bool)
__add_boolean('headless', bool)
end
|
#http_directory(path) ⇒ Object
45
46
47
|
# File 'lib/packer/builders/vmware_vmx.rb', line 45
def http_directory(path)
__add_string('http_directory', path)
end
|
#http_port_max(port) ⇒ Object
53
54
55
|
# File 'lib/packer/builders/vmware_vmx.rb', line 53
def http_port_max(port)
__add_integer('http_port_max', port)
end
|
#http_port_min(port) ⇒ Object
49
50
51
|
# File 'lib/packer/builders/vmware_vmx.rb', line 49
def http_port_min(port)
__add_integer('http_port_min', port)
end
|
#output_directory(path) ⇒ Object
57
58
59
|
# File 'lib/packer/builders/vmware_vmx.rb', line 57
def output_directory(path)
__add_string('output_directory', path)
end
|
#shutdown_command(command) ⇒ Object
61
62
63
|
# File 'lib/packer/builders/vmware_vmx.rb', line 61
def shutdown_command(command)
__add_string('shutdown_command', command)
end
|
#shutdown_timeout(timeout) ⇒ Object
65
66
67
|
# File 'lib/packer/builders/vmware_vmx.rb', line 65
def shutdown_timeout(timeout)
__add_string('shutdown_timeout', timeout)
end
|
#skip_compaction(bool) ⇒ Object
69
70
71
|
# File 'lib/packer/builders/vmware_vmx.rb', line 69
def skip_compaction(bool)
__add_boolean('skip_compaction', bool)
end
|
#source_path(path) ⇒ Object
13
14
15
|
# File 'lib/packer/builders/vmware_vmx.rb', line 13
def source_path(path)
__add_string('source_path', path)
end
|
#ssh_key_path(path) ⇒ Object
73
74
75
|
# File 'lib/packer/builders/vmware_vmx.rb', line 73
def ssh_key_path(path)
__add_string('ssh_key_path', path)
end
|
#ssh_password(password) ⇒ Object
21
22
23
|
# File 'lib/packer/builders/vmware_vmx.rb', line 21
def ssh_password(password)
__add_string('ssh_password', password)
end
|
#ssh_port(port) ⇒ Object
77
78
79
|
# File 'lib/packer/builders/vmware_vmx.rb', line 77
def ssh_port(port)
__add_integer('ssh_port', port)
end
|
#ssh_skip_request_pty(bool) ⇒ Object
81
82
83
|
# File 'lib/packer/builders/vmware_vmx.rb', line 81
def ssh_skip_request_pty(bool)
__add_boolean('ssh_skip_request_pty', bool)
end
|
#ssh_username(username) ⇒ Object
17
18
19
|
# File 'lib/packer/builders/vmware_vmx.rb', line 17
def ssh_username(username)
__add_string('ssh_username', username)
end
|
#ssh_wait_timeout(timeout) ⇒ Object
85
86
87
|
# File 'lib/packer/builders/vmware_vmx.rb', line 85
def ssh_wait_timeout(timeout)
__add_string('ssh_wait_timeout', timeout)
end
|
#vm_name(name) ⇒ Object
89
90
91
|
# File 'lib/packer/builders/vmware_vmx.rb', line 89
def vm_name(name)
__add_string('vm_name', name)
end
|
#vmx_data(data_hash) ⇒ Object
93
94
95
|
# File 'lib/packer/builders/vmware_vmx.rb', line 93
def vmx_data(data_hash)
__add_hash('vmx_data', data_hash)
end
|
#vmx_data_post(data_hash) ⇒ Object
97
98
99
|
# File 'lib/packer/builders/vmware_vmx.rb', line 97
def vmx_data_post(data_hash)
__add_hash('vmx_data_post', data_hash)
end
|
#vnc_port_max(port) ⇒ Object
105
106
107
|
# File 'lib/packer/builders/vmware_vmx.rb', line 105
def vnc_port_max(port)
__add_integer('vnc_port_max', port)
end
|
#vnc_port_min(port) ⇒ Object
101
102
103
|
# File 'lib/packer/builders/vmware_vmx.rb', line 101
def vnc_port_min(port)
__add_integer('vnc_port_min', port)
end
|