#!/usr/bin/ruby require 'rubygems' require 'gemi' def banner abort ' No configuration file given! TRY THIS! $ cat gems.yml gems: - name: ruby-openid version: 2.1.4 native: 0 $ sudo gemi gems.yml ' end abort banner unless ARGV.size == 1 abort banner if ARGV[0] == '-h' configuration = Gemi::Configuration.new(ARGV[0].to_s) Gemi::Installer.new(configuration.gems.collect { |gem| Gemi::Gem.new(gem) }).run!