# File lib/fog/openstack/models/orchestration/stack.rb, line 21 def initialize(attributes) # Old 'connection' is renamed as service and should be used instead prepare_service_value(attributes) super end
# File lib/fog/openstack/models/orchestration/stack.rb, line 32 def create requires :stack_name service.create_stack(stack_name, self.attributes) self end
# File lib/fog/openstack/models/orchestration/stack.rb, line 44 def destroy requires :id service.delete_stack(self.stack_name, self.id) true end
# File lib/fog/openstack/models/orchestration/stack.rb, line 27 def save requires :stack_name identity ? update : create end
# File lib/fog/openstack/models/orchestration/stack.rb, line 38 def update requires :stack_name service.update_stack(stack_name, self.attributes) self end