Skip to content

Instantly share code, notes, and snippets.

@wheresalice
Created April 23, 2010 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wheresalice/376409 to your computer and use it in GitHub Desktop.
Save wheresalice/376409 to your computer and use it in GitHub Desktop.
Shows all modules available across all Aegir platforms. Doesn't test if they're in use or not
require 'find'
modules = []
Find.find('/var/aegir/platforms') { |file| modules << File.basename(file) if File.basename(file) =~ /\.module$/ }
puts modules.sort.uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment