defunkt/hub — comment on commit db6b0ebf6fe317bd472407ab80ddb01906750e63
File:  line 0
By docwhat:

Some other examples of the same type of code:

* Rake: https://github.com/jimweirich/rake/blob/master/install.rb
* RubyGems: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/installer.rb#L429

Unfortunately neither version can be just used directly; The RubyGems version doesn't work without instantiating a `Gem::Installer` object and the Rake version only works in it's own space.