methods/pk_client.rb
# check if packer VM image exists
check if packer VM image exists
check if packer VM image exists
def check_packer_vm_image_exists(options)
  images_dir = options['clientdir']+"/images"
  if File.directory?(images_dir)
    exists = true
  else
    exists = false
  end
  return exists,images_dir
end
def check_packer_vm_image_exists ( options ) images_dir = options [ 'clientdir' ] + "/images" if File . directory? ( images_dir ) exists = true else exists = false end return exists , images_dir end
check if packer VM image exists
check if packer VM image exists
options
<not_specific>