class Pfm::Command::Base

def download_private_key(bucket, subkey, outdir)

def download_private_key(bucket, subkey, outdir)
  s3 = Aws::S3::Client.new(region: SETTINGS['AWS_REGION'])
  resp = s3.get_object(bucket: bucket, key: "#{subkey}/private_key.pem", response_target: "#{outdir}/private_key.pem")
  true
rescue Aws::S3::Errors::NoSuchKey
  false
end