methods/pk_client.rb
# Check if a packer image exists
Check if a packer image exists
Check if a packer image exists
def check_packer_image_exists(options)
	packer_dir = options['clientdir']+"/packer/"+options['vm']
  image_dir  = options['clientdir']+"/images"
  image_file = image_dir+"/"+options['name']+".ovf"
  if File.exist?(image_file)
  	exists = true
  else
  	exists = false
  end
	return exists
end
def check_packer_image_exists ( options ) packer_dir = options [ 'clientdir' ] + "/packer/" + options [ 'vm' ] image_dir = options [ 'clientdir' ] + "/images" image_file = image_dir + "/" + options [ 'name' ] + ".ovf" if File . exist? ( image_file ) exists = true else exists = false end return exists end
Check if a packer image exists
Check if a packer image exists
options
<not_specific>