Method: Drydock::Project#destroy!

Defined in:
lib/drydock/project.rb

#destroy!(force: false) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Destroy the images and containers created, and attempt to return the docker state as it was before the project. The project object itself cannot be reused after it is destroyed.



164
165
166
167
168
169
# File 'lib/drydock/project.rb', line 164

def destroy!(force: false)
  return self if frozen?
  finalize!(force: force)
  chain.destroy!(force: force) if chain
  freeze
end