def _destroy_created_environments(self, result):
     if not result.wasSuccessful():
         print EnvironmentBuilder.environment_information_as_string()
         return
     EnvironmentBuilder.destroy_all_environments()
 def finalize(self, result):
     EnvironmentBuilder.stop_all_environments()
     self._destroy_created_environments(result)
 def begin(self):
     EnvironmentBuilder.set_config_from_file(self._config_filename)
     EnvironmentBuilder.use_external_cleanup_handler()
 def _destroy_created_environments(self, result):
     if not result.wasSuccessful():
         print EnvironmentBuilder.environment_information_as_string()
         return
     EnvironmentBuilder.destroy_all_environments()
 def finalize(self, result):
     EnvironmentBuilder.stop_all_environments()
     self._destroy_created_environments(result)
 def begin(self):
     EnvironmentBuilder.set_config_from_file(self._config_filename)
     EnvironmentBuilder.use_external_cleanup_handler()