Nextdoor/puppet_rightscale — pull request #8 by mhwest13 (2014-08-03 09:23:37+00:00)
Title: Disk caching attempt...

I needed to not have facter hitting rightscale every time we decided to load up facter, both inside of ruby and from the facter cli...

This is a crude yet working disk_cache routine / flow that will reduce your rightscale api calls to at the very least some X amount over time as well as across executions or library inclusions... I'm sure this could be implemented more eloquently, I just figured I'd offer this up as a beginning stab so someone might be able to make it better.

Cheers,

p.s. I'm in no way representing myself as a ruby programmer, this took way longer than it probably should have and may have a few more changes than necessary ;)