def download_manifest_only
      FastlaneCore::UI.message('download_manifest_only...')
      rsa_key = load_rsa_key(rsa_keypath)
      success = true
      if !rsa_key.nil?
        FastlaneCore::UI.message('Logging in with RSA key for download...')
        Net::SSH.start(host, user, key_data: rsa_key, keys_only: true) do |ssh|
          FastlaneCore::UI.message('Uploading UPA & Manifest...')
          success = ssh_sftp_download(ssh, manifest_path)
        end
      else
        FastlaneCore::UI.message('Logging in for download...')
        Net::SSH.start(host, user, password: password) do |ssh|
          FastlaneCore::UI.message('Uploading UPA & Manifest...')
          success = ssh_sftp_download(ssh, manifest_path)
        end
      end
      success
    end
def download_manifest_only
      FastlaneCore::UI.message('download_manifest_only...')
      rsa_key = load_rsa_key(rsa_keypath)
      success = true
      if !rsa_key.nil?
        FastlaneCore::UI.message('Logging in with RSA key for download...')
        Net::SSH.start(host, user, key_data: rsa_key, keys_only: true) do |ssh|
          FastlaneCore::UI.message('Uploading UPA & Manifest...')
          success = ssh_sftp_download(ssh, manifest_path)
        end
      else
        FastlaneCore::UI.message('Logging in for download...')
        Net::SSH.start(host, user, password: password) do |ssh|
          FastlaneCore::UI.message('Uploading UPA & Manifest...')
          success = ssh_sftp_download(ssh, manifest_path)
        end
      end
      success
    end
Download metadata only

 rubocop:disable Metrics/AbcSize
 rubocop:disable Metrics/MethodLength