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

- old
+ new

@@ -7,17 +7,21 @@ DOCKER_IMPORT = 'docker-import' DOCKER_PUSH = 'docker-push' DOCKER_SAVE = 'docker-save' DOCKER_TAG = 'docker-tag' VAGRANT = 'vagrant' + COMPRESS = 'compress' + SHELL_LOCAL = 'shell-local' VALID_POST_PROCESSOR_TYPES = [ DOCKER_IMPORT, DOCKER_PUSH, DOCKER_SAVE, DOCKER_TAG, - VAGRANT + COMPRESS, + VAGRANT, + SHELL_LOCAL ] class UnrecognizedPostProcessorTypeError < StandardError end @@ -28,9 +32,11 @@ { 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 }.fetch(type).new end def self.types