methods/ec_common.rb
# Check if AWS key file exists
Check if AWS key file exists
Check if AWS key file exists
def check_aws_ssh_key_file_exists(options)
  aws_ssh_key = options['keydir']+"/"+options['key']+".pem"
  if File.exist?(aws_ssh_key)
    exists = true
  else
    exists = false
  end
  return exists
end
def check_aws_ssh_key_file_exists ( options ) aws_ssh_key = options [ 'keydir' ] + "/" + options [ 'key' ] + ".pem" if File . exist? ( aws_ssh_key ) exists = true else exists = false end return exists end
Check if AWS key file exists
Check if AWS key file exists
options
<not_specific>