bagotrix (bag o’ tricks)

require 'bagotrix'
Bagotrix.config :user => 'levity', :repo => 'bagotrix-repo', :verbose => true
Bagotrix.load 'handy_little_script'

That will fetch https://github.com/levity/bagotrix-repo/raw/master/handy_little_script.rb and eval it.

Think of this as “remote require”. It’s only for single-file snippets, however; for proper gems, there’s Bundler and RVM and so on.

Configuration

Contributing to bagotrix

Copyright © 2011 Lawrence Wang. See LICENSE.txt for further details.