blt04/puppet-rvm — pull request #39 by rwilcox (2012-03-14 02:09:01+00:00)
Title: Workaround Puppets late binding issue for resources by Being Clever(TW)

This pull request works around the late binding issue for Providers by faking out Puppet.

With these modifications I was able to take a virgin virtual machine that has never seen RVM and install RVM, a Ruby, and a gemset for that Ruby.

It works by faking out Puppet - saying that it will run a command (the true command), but then turns around and runs RVM at runtime. Sneaky, and probably something that would get me kicked out of the Puppet Users Guild Of Best Practicing Artisans... but it works! :)

Let me know if you have any questions or if there's anything I can do to make this patch better!
_Ryan Wilcox