Class: Packer::PostProcessor::Vagrant
Constant Summary
DOCKER_IMPORT, DOCKER_PUSH, DOCKER_SAVE, DOCKER_TAG, 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.
8
9
10
11
|
# File 'lib/packer/postprocessors/vagrant.rb', line 8
def initialize
super()
self.data['type'] = VAGRANT
end
|
Instance Method Details
#compression_level(level) ⇒ Object
13
14
15
|
# File 'lib/packer/postprocessors/vagrant.rb', line 13
def compression_level(level)
self.__add_integer('compression_level', level)
end
|
#include(files) ⇒ Object
17
18
19
|
# File 'lib/packer/postprocessors/vagrant.rb', line 17
def include(files)
self.__add_array_of_strings('include', files)
end
|
21
22
23
|
# File 'lib/packer/postprocessors/vagrant.rb', line 21
def keep_input_artifact(bool)
self.__add_boolean('keep_input_artifact', bool)
end
|
#output(file) ⇒ Object
25
26
27
|
# File 'lib/packer/postprocessors/vagrant.rb', line 25
def output(file)
self.__add_string('output', file)
end
|
#vagrantfile_template(file) ⇒ Object
29
30
31
|
# File 'lib/packer/postprocessors/vagrant.rb', line 29
def vagrantfile_template(file)
self.__add_string('vagrantfile_template', file)
end
|