class Packer::Builder::Docker
Public Class Methods
new()
click to toggle source
Calls superclass method
Packer::Builder::new
# File lib/packer/builders/docker.rb, line 8 def initialize super self.data['type'] = DOCKER self.add_required('image') end
Public Instance Methods
changes(changes)
click to toggle source
# File lib/packer/builders/docker.rb, line 30 def changes(changes) self.__add_array_of_strings('changes', changes) end
commit(bool)
click to toggle source
# File lib/packer/builders/docker.rb, line 18 def commit(bool) self.__add_boolean('commit', bool, ['export_path']) end
export_path(path)
click to toggle source
# File lib/packer/builders/docker.rb, line 14 def export_path(path) self.__add_string('export_path', path, ['commit']) end
image(name)
click to toggle source
# File lib/packer/builders/docker.rb, line 22 def image(name) self.__add_string('image', name) end
pull(bool)
click to toggle source
# File lib/packer/builders/docker.rb, line 26 def pull(bool) self.__add_boolean('pull', bool) end
run_command(commands)
click to toggle source
# File lib/packer/builders/docker.rb, line 34 def run_command(commands) self.__add_array_of_strings('run_command', commands) end