lib/packer/postprocessor.rb in packer-config-1.6.3 vs lib/packer/postprocessor.rb in packer-config-1.6.4

- old
+ new

@@ -9,35 +9,39 @@ DOCKER_SAVE = 'docker-save' DOCKER_TAG = 'docker-tag' VAGRANT = 'vagrant' COMPRESS = 'compress' SHELL_LOCAL = 'shell-local' + MANIFEST = 'manifest' VALID_POST_PROCESSOR_TYPES = [ DOCKER_IMPORT, DOCKER_PUSH, DOCKER_SAVE, DOCKER_TAG, COMPRESS, VAGRANT, - SHELL_LOCAL + SHELL_LOCAL, + MANIFEST ] class UnrecognizedPostProcessorTypeError < StandardError end def self.get_postprocessor(type) unless validate_type(type) raise UnrecognizedPostProcessorTypeError.new("Unrecognized post-processor type #{type}") end + { DOCKER_IMPORT => Packer::PostProcessor::DockerImport, DOCKER_PUSH => Packer::PostProcessor::DockerPush, DOCKER_SAVE => Packer::PostProcessor::DockerSave, DOCKER_TAG => Packer::PostProcessor::DockerTag, COMPRESS => Packer::PostProcessor::Compress, SHELL_LOCAL => Packer::PostProcessor::ShellLocal, - VAGRANT => Packer::PostProcessor::Vagrant + VAGRANT => Packer::PostProcessor::Vagrant, + MANIFEST => Packer::PostProcessor::Manifest }.fetch(type).new end def self.types VALID_POST_PROCESSOR_TYPES