From 8e3b2b7e87845fb283108568bf035de1653c0226 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Lopes Ribeiro Date: Mon, 22 Dec 2014 00:08:44 -0200 Subject: [PATCH] Deprecating methods in models --- lib/fog/xenserver/models/compute/network.rb | 3 +++ lib/fog/xenserver/models/compute/server.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/fog/xenserver/models/compute/network.rb b/lib/fog/xenserver/models/compute/network.rb index a0a63f05f..da4161800 100644 --- a/lib/fog/xenserver/models/compute/network.rb +++ b/lib/fog/xenserver/models/compute/network.rb @@ -24,6 +24,9 @@ module Fog attribute :blobs def refresh + Fog::Logger.deprecation( + 'This method is deprecated. Use #reload instead.' + ) data = service.get_record( reference, 'network' ) merge_attributes( data ) true diff --git a/lib/fog/xenserver/models/compute/server.rb b/lib/fog/xenserver/models/compute/server.rb index 31e633786..ab0238cd8 100644 --- a/lib/fog/xenserver/models/compute/server.rb +++ b/lib/fog/xenserver/models/compute/server.rb @@ -124,6 +124,9 @@ module Fog end def refresh + Fog::Logger.deprecation( + 'This method is deprecated. Use #reload instead.' + ) data = service.get_record( reference, 'VM' ) merge_attributes( data ) true