Module: Inspec::Resources::DockerObject
- Included in:
- DockerContainer, DockerImage, DockerService
- Defined in:
- lib/resources/docker_object.rb
Overview
Copyright 2017, Christoph Hartmann
author: Christoph Hartmann author: Patrick Muench author: Dominik Richter author: Matt Kulka
Instance Method Summary collapse
Instance Method Details
#exist? ⇒ Boolean
11 12 13 |
# File 'lib/resources/docker_object.rb', line 11 def exist? object_info.exists? end |
#id ⇒ Object
15 16 17 |
# File 'lib/resources/docker_object.rb', line 15 def id object_info.ids[0] if object_info.entries.size == 1 end |