lib/packer/postprocessor.rb in packer-config-1.1.0 vs lib/packer/postprocessor.rb in packer-config-1.2.0
- old
+ new
@@ -4,15 +4,19 @@
module Packer
class PostProcessor < Packer::DataObject
DOCKER_IMPORT = 'docker-import'
DOCKER_PUSH = 'docker-push'
+ DOCKER_SAVE = 'docker-save'
+ DOCKER_TAG = 'docker-tag'
VAGRANT = 'vagrant'
VALID_POST_PROCESSOR_TYPES = [
DOCKER_IMPORT,
DOCKER_PUSH,
+ DOCKER_SAVE,
+ DOCKER_TAG,
VAGRANT
]
class UnrecognizedPostProcessorTypeError < StandardError
end
@@ -22,9 +26,11 @@
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,
VAGRANT => Packer::PostProcessor::Vagrant
}.fetch(type).new
end
def self.types