Sha256: cabd8276045692ae268e515dd3d37f73b148092d8265efc3afec2dd92f225eb1

Contents?: true

Size: 246 Bytes

Versions: 32

Compression:

Stored size: 246 Bytes

Contents

module Serverspec::Type
  class DockerContainer < DockerBase
    def running?
      inspection['State']['Running']
    end

    def has_volume?(container_path, host_path)
      inspection['Volumes'][container_path] == host_path
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
serverspec-2.23.0 lib/serverspec/type/docker_container.rb
serverspec-2.22.0 lib/serverspec/type/docker_container.rb
serverspec-2.21.1 lib/serverspec/type/docker_container.rb
serverspec-2.21.0 lib/serverspec/type/docker_container.rb
serverspec-2.20.0 lib/serverspec/type/docker_container.rb
serverspec-2.19.0 lib/serverspec/type/docker_container.rb
serverspec-2.18.0 lib/serverspec/type/docker_container.rb
serverspec-2.17.1 lib/serverspec/type/docker_container.rb
serverspec-2.17.0 lib/serverspec/type/docker_container.rb
serverspec-2.16.0 lib/serverspec/type/docker_container.rb
serverspec-2.15.0 lib/serverspec/type/docker_container.rb
serverspec-2.14.1 lib/serverspec/type/docker_container.rb
serverspec-2.14.0 lib/serverspec/type/docker_container.rb
serverspec-2.13.0 lib/serverspec/type/docker_container.rb
serverspec-2.12.0 lib/serverspec/type/docker_container.rb
serverspec-2.11.0 lib/serverspec/type/docker_container.rb
serverspec-2.10.2 lib/serverspec/type/docker_container.rb
serverspec-2.10.1 lib/serverspec/type/docker_container.rb
serverspec-2.10.0 lib/serverspec/type/docker_container.rb
serverspec-2.9.1 lib/serverspec/type/docker_container.rb