From 6c7a7008612e30a9876a5f4cab2d6d976bce0d4a Mon Sep 17 00:00:00 2001 From: Anton Chuchkalov Date: Fri, 28 Aug 2015 14:55:33 +0300 Subject: [PATCH] add comment for details --- devops-service/db/mongo/models/stack/stack_base.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devops-service/db/mongo/models/stack/stack_base.rb b/devops-service/db/mongo/models/stack/stack_base.rb index f4b0a9a..9216f6e 100644 --- a/devops-service/db/mongo/models/stack/stack_base.rb +++ b/devops-service/db/mongo/models/stack/stack_base.rb @@ -72,6 +72,11 @@ module Devops provider_instance.stack_resource(self, resource_id) end + # there is only one way to update stack status right now: + # stack.sync_details! + # mongo.stack_update(stack) + # It's because syncing updates @details instance variable, but doesn'not persist it. + # Also that's why we need to have "details" key in #to_mongo_hash def stack_status raise 'override me' end