restebanez/agi — pull request #34 by restebanez (2012-10-25 18:51:47+00:00)
Title: When creating an app_instance, set the production flat to true if the ap...

When an app instance is created it will set the production attribute flat to true if it's running on a production environment, otherwise it will be set to false.

In order to know if it's running on a production environment it relies on capistrano variable dynect_zone. Production environment uses imedidata.com, non-production ones uses imedidata.net. This setting is manually set in medistrano.

The code is almost identical to the [medistrano one](https://github.com/mdsol/medistrano/pull/101)

Rodrigo