Module: DevDock
- Defined in:
- lib/dev_dock/volumes.rb,
 lib/dev_dock.rb,
 lib/dev_dock/log.rb,
 lib/dev_dock/util.rb,
 lib/dev_dock/binds.rb,
 lib/dev_dock/image.rb,
 lib/dev_dock/options.rb,
 lib/dev_dock/version.rb,
 lib/dev_dock/container.rb
Overview
Automatically generated volumes based on what the image has listed in its dockerfile
Defined Under Namespace
Modules: Log, Util Classes: DevBind, DevBinds, DevContainer, DevImage, DevVolume, DevVolumes, Options
Constant Summary collapse
- VERSION =
- "0.3.0"
Class Method Summary collapse
Class Method Details
.purge(options) ⇒ Object
| 20 21 22 23 24 25 26 | # File 'lib/dev_dock.rb', line 20 def self.purge() container = DevDock::DevContainer.new() if container.exist? container.kill end container.volumes.remove end | 
.start(options) ⇒ Object
| 6 7 8 9 10 11 12 13 14 15 16 17 18 | # File 'lib/dev_dock.rb', line 6 def self.start() container = DevDock::DevContainer.new() 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 |