lib/packer/builders/docker.rb in packer-config-1.6.4 vs lib/packer/builders/docker.rb in packer-config-1.6.5

- old
+ new

@@ -6,25 +6,30 @@ class Builder < Packer::DataObject class Docker < Builder def initialize super self.data['type'] = DOCKER - self.add_required( - 'export_path', - 'image' - ) + self.add_required('image') end def export_path(path) - self.__add_string('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