Class: Packer::PostProcessor::DockerImport

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, #key_dependencies, #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_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

#initializeDockerImport

Returns a new instance of DockerImport.



8
9
10
11
12
# File 'lib/packer/postprocessors/docker.rb', line 8

def initialize
  super
  self.data['type'] = DOCKER_IMPORT
  self.add_required('repository')
end

Instance Method Details

#repository(repo) ⇒ Object



14
15
16
# File 'lib/packer/postprocessors/docker.rb', line 14

def repository(repo)
  self.__add_string('repository', repo)
end

#tag(tag) ⇒ Object



18
19
20
# File 'lib/packer/postprocessors/docker.rb', line 18

def tag(tag)
  self.__add_string('tag', tag)
end