module DevDock
Automatically generated volumes based on what the image has listed in its dockerfile
Constants
- VERSION
Public Class Methods
purge(options)
click to toggle source
# File lib/dev_dock.rb, line 20 def self.purge(options) container = DevDock::DevContainer.new(options) if container.exist? container.kill end container.volumes.remove end
start(options)
click to toggle source
# File lib/dev_dock.rb, line 6 def self.start(options) container = DevDock::DevContainer.new(options) if not container.image.exist? Log::info('image does not exist, pulling') container.image.pull end container.volumes.create container.binds.create container.run end