Sha256: e7a885d224320b7aa4bdcc7420e28706a2c1a50da53f633f7f4ecd16dd7f28e9
Contents?: true
Size: 284 Bytes
Versions: 3
Compression:
Stored size: 284 Bytes
Contents
module Serverspec::Type class DockerContainer < DockerBase def running? inspection['State']['Running'] && !inspection['State']['Restarting'] end def has_volume?(container_path, host_path) inspection['Volumes'][container_path] == host_path end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
serverspec-2.24.1 | lib/serverspec/type/docker_container.rb |
serverspec-2.24.0 | lib/serverspec/type/docker_container.rb |
serverspec-2.23.1 | lib/serverspec/type/docker_container.rb |