Build apt and yum repositories with Ruby