Class: Packer::PostProcessor::Vagrant
Constant Summary
DOCKER_IMPORT, DOCKER_PUSH, VAGRANT, VALID_POST_PROCESSOR_TYPES
Instance Attribute Summary
Attributes inherited from DataObject
#data, #required
Instance Method Summary
collapse
#except, get_postprocessor, #only, 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 Vagrant.
21
22
23
24
|
# File 'lib/packer/postprocessors/vagrant.rb', line 21
def initialize
super()
self.data['type'] = VAGRANT
end
|
Instance Method Details
#compression_level(level) ⇒ Object
26
27
28
|
# File 'lib/packer/postprocessors/vagrant.rb', line 26
def compression_level(level)
self.__add_integer('compression_level', level)
end
|
#include(files) ⇒ Object
30
31
32
|
# File 'lib/packer/postprocessors/vagrant.rb', line 30
def include(files)
self.__add_array_of_strings('include', files)
end
|
34
35
36
|
# File 'lib/packer/postprocessors/vagrant.rb', line 34
def keep_input_artifact(bool)
self.__add_boolean('keep_input_artifact', bool)
end
|
#output(file) ⇒ Object
38
39
40
|
# File 'lib/packer/postprocessors/vagrant.rb', line 38
def output(file)
self.__add_string('output', file)
end
|
#vagrantfile_template(file) ⇒ Object
42
43
44
|
# File 'lib/packer/postprocessors/vagrant.rb', line 42
def vagrantfile_template(file)
self.__add_string('vagrantfile_template', file)
end
|