hub-cap/reddwarf_lite — pull request #33 by TimSimpsonR (2012-03-23 13:58:17+00:00)
Title: Added status code, return 422 when trying to delete a busy instance.

* Added UnprocessableEntity exception from legacy.
* Returned 422 when deleting an instance which is being built.
* Made Instance.delete non-static when I realized that this would simplify the method, give us some validation for free and be almost as fast.
* Created / modified Instance methods "is_sql_running," "status," and "_validate_can_perform_action" by taking code from the legacy InstanceStatus class.