Class: Packer::PostProcessor::DockerSave
- Inherits:
-
Packer::PostProcessor
- Object
- DataObject
- Packer::PostProcessor
- Packer::PostProcessor::DockerSave
- Defined in:
- lib/packer/postprocessors/docker.rb
Constant Summary
Constants inherited from Packer::PostProcessor
DOCKER_IMPORT, DOCKER_PUSH, DOCKER_SAVE, DOCKER_TAG, VAGRANT, VALID_POST_PROCESSOR_TYPES
Instance Attribute Summary
Attributes inherited from DataObject
#data, #key_dependencies, #required
Instance Method Summary collapse
-
#initialize ⇒ DockerSave
constructor
A new instance of DockerSave.
- #path(path) ⇒ Object
Methods inherited from Packer::PostProcessor
#except, get_postprocessor, #keep_input_artifact, #only, types
Methods inherited from DataObject
#__add_array_of_array_of_strings, #__add_array_of_hashes, #__add_array_of_ints, #__add_array_of_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_json, #__add_string, #__exclusive_key_error, #add_key_dependencies, #add_required, #deep_copy, #validate, #validate_key_dependencies, #validate_required
Constructor Details
#initialize ⇒ DockerSave
Returns a new instance of DockerSave.
51 52 53 54 55 |
# File 'lib/packer/postprocessors/docker.rb', line 51 def initialize super self.data['type'] = DOCKER_SAVE self.add_required('path') end |
Instance Method Details
#path(path) ⇒ Object
57 58 59 |
# File 'lib/packer/postprocessors/docker.rb', line 57 def path(path) self.__add_string('path', path) end |