Module: Inspec::Resources::DockerObject
- Included in:
- DockerContainer, DockerImage, DockerService, PodmanContainer, PodmanImage
- Defined in:
- lib/inspec/resources/docker_object.rb
Overview
Copyright 2017, Christoph Hartmann
Instance Method Summary collapse
Instance Method Details
#exist? ⇒ Boolean
6 7 8 |
# File 'lib/inspec/resources/docker_object.rb', line 6 def exist? object_info.exists? end |
#id ⇒ Object
10 11 12 |
# File 'lib/inspec/resources/docker_object.rb', line 10 def id object_info.ids[0] if object_info.entries.size == 1 end |