#!/usr/bin/env ruby require 'rvmify' def usage puts "To use rvmify, you must specify a directory." puts puts "Examples: rvmify ." puts " rmvify /path/to/myproject" abort end dir = ARGV.shift usage if dir.nil? begin Rvmify.generate(File.expand_path(dir)) rescue => e abort(e.message) rescue Timeout::Error => e abort("Request Timeout") end