# Encoding: utf-8 require 'packer/builder' require 'packer/dataobject' module Packer class Builder < Packer::DataObject class Docker < Builder def initialize super self.data['type'] = DOCKER self.add_required('image') end def export_path(path) self.__add_string('export_path', path, ['commit']) end def commit(bool) self.__add_boolean('commit', bool, ['export_path']) end def image(name) self.__add_string('image', name) end def pull(bool) self.__add_boolean('pull', bool) end def changes(changes) self.__add_array_of_strings('changes', changes) end def run_command(commands) self.__add_array_of_strings('run_command', commands) end end end end