source: server/fedora/config/gems.py @ 409

Last change on this file since 409 was 204, checked in by presbrey, 16 years ago
gems install script rpms install script user import signup script suexec SELinux error bug fix
  • Property svn:executable set to *
File size: 338 bytes
Line 
1#!/usr/bin/python
2"""Retrieve local ruby gem list from scripts.mit.edu
3
4Joe Presbrey <presbrey@mit.edu"""
5
6import commands, re
7
8def scripts_gems():
9        cout = commands.getoutput('gem list --local')
10        return re.findall('([^\s]+)\s\([0-9\.]+\)', cout)
11
12if __name__ == "__main__":
13        for x in gems_local():
14                if x == 'sources': continue
15                print x
Note: See TracBrowser for help on using the repository browser.