puppetlabs/puppet-dashboard — pull request #167 by sodabrew (2013-01-20 14:19:43+00:00)
Title: Significantly reduce code length for rake api tasks

Mostly just clean up Ruby and ActiveRecord usage to be more concise.

This branch includes PR #166, better to review and merge that one first.

Fixes one deprecation that prevents the API from working on Ruby 1.9: `require 'ftools'` becomes `require 'fileutils'` (still works fine on 1.8).