Method: Pfab::CLI#image_exists?
- Defined in:
- lib/pfab/cli.rb
#image_exists?(full_image_name) ⇒ Boolean
209 210 211 212 213 214 215 216 |
# File 'lib/pfab/cli.rb', line 209 def image_exists?(full_image_name) # return 0 if image exists 1 if not cmd = "docker manifest inspect #{full_image_name} > /dev/null ; echo $?" say "Looking for images with #{cmd}" existing = `#{cmd}`.strip existing == "0" end |