def find_google_ssh_public_key
      keyfile = ENV.fetch('BEAKER_gce_ssh_public_key', File.join(ENV['HOME'], '.ssh', 'google_compute_engine.pub'))

      if @options[:gce_ssh_public_key] && !File.exist?(keyfile)
        keyfile = @options[:gce_ssh_public_key]
      end

      raise("Could not find GCE Public SSH Key at '#{keyfile}'") unless File.exist?(keyfile)

      return keyfile
    end
def find_google_ssh_public_key
      keyfile = ENV.fetch('BEAKER_gce_ssh_public_key', File.join(ENV['HOME'], '.ssh', 'google_compute_engine.pub'))

      if @options[:gce_ssh_public_key] && !File.exist?(keyfile)
        keyfile = @options[:gce_ssh_public_key]
      end

      raise("Could not find GCE Public SSH Key at '#{keyfile}'") unless File.exist?(keyfile)

      return keyfile
    end
def find_google_ssh_public_key keyfile = ENV . fetch ( 'BEAKER_gce_ssh_public_key' , File . join ( ENV [ 'HOME' ] , '.ssh' , 'google_compute_engine.pub' ) ) if @options [ :gce_ssh_public_key ] && ! File . exist? ( keyfile ) keyfile = @options [ :gce_ssh_public_key ] end raise ( "Could not find GCE Public SSH Key at '#{keyfile}'" ) unless File . exist? ( keyfile ) return keyfile end
Do some reasonable sleuthing on the SSH public key for GCE
Do some reasonable sleuthing on the SSH public key for GCE