Class: Packer::PostProcessor::DockerSave

Inherits:
Packer::PostProcessor show all
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, #required

Instance Method Summary collapse

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_strings, #__add_boolean, #__add_hash, #__add_integer, #__add_string, #__exclusive_key_error, #add_required, #deep_copy, #validate

Constructor Details

#initializeDockerSave

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