replace line 24 of my commit with it? I believe line 23 and 25 will still be needed as well. The folder should still be deleted after it is emptied.

Replace:

    FileUtils.cp_r extracted_archive_path + 'phpMyAdmin-4.1.7-all-languages/.', extracted_archive_path

With:

    execute 'mv', extracted_archive_path + 'phpMyAdmin-4.1.7-all-languages/', phpmyadmin_path

Let me know if that is your thoughts and I'll go forward with it.