5affc9b Create helper function to upload to temp file

Authored and Committed by cheimes 5 years ago
    Create helper function to upload to temp file
    
    upload_temp_contents() generates a temporary file on the remote side and
    uploads content to that temporary file. The file name is returned.
    
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>