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/image.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: DevContainer, DevImage, DevVolume, DevVolumes
Constant Summary collapse
- VERSION =
"0.1.3"
Class Method Summary collapse
Class Method Details
.purge(name) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/dev_dock.rb', line 18 def self.purge(name) container = DevDock::DevContainer.new(name) if container.exist? container.kill end container.volumes.remove end |
.start(name) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dev_dock.rb', line 6 def self.start(name) container = DevDock::DevContainer.new(name) if not container.image.exist? Log::info('image does not exist, pulling') container.image.pull end container.volumes.create container.run end |