Move logic from ci:publish_pipeline_gems task into a tested class
cleanup requires in rake :ci namespace
Use Rake::FileUtilsExt instead of system for consistency