Class: Serverspec::Type::DockerContainer
- Inherits:
-
DockerBase
- Object
- Base
- DockerBase
- Serverspec::Type::DockerContainer
- Defined in:
- lib/serverspec/type/docker_container.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from DockerBase
Methods inherited from Base
#initialize, #inspect, #to_ary, #to_s
Constructor Details
This class inherits a constructor from Serverspec::Type::Base
Instance Method Details
#has_volume?(container_path, host_path) ⇒ Boolean
7 8 9 |
# File 'lib/serverspec/type/docker_container.rb', line 7 def has_volume?(container_path, host_path) inspection['Volumes'][container_path] == host_path end |
#running? ⇒ Boolean
3 4 5 |
# File 'lib/serverspec/type/docker_container.rb', line 3 def running? inspection['State']['Running'] end |