STC Mailman Roster Sync Tool
This app syncs a roster of STs with a set of mailman lists, based on college and queue.
Usage
CSV
- Create a
roster.csv
file with the columns Yale Email
Queue
- Save
roster.csv
in the same folder as the scriptroster.rb
Running the Script
Once you have your data loaded in a properly formatted csv, run:
bundle install
bundle exec ruby roster.rb
Syncing with Mailman
Once the script has run, copy over the files created (command list
and studtech-*
) to the mailman server.
Example:
scp -r mailman_roster/ csw3@ahi.its.yale.edu:~
ssh ahi@its.yale.edu
- Confirm lists:
cat mailman_roster/studtech-st-bk
chmod +x mailman_roster/command_list
mailman_roster/command_list