diff --git a/lib/fog/compute/xen_server/models/server.rb b/lib/fog/compute/xen_server/models/server.rb index a901268..d1e6239 100644 --- a/lib/fog/compute/xen_server/models/server.rb +++ b/lib/fog/compute/xen_server/models/server.rb @@ -130,7 +130,7 @@ def save(params = {}) end def revert(snapshot_ref) - warn 'This method is DEPRECATED. Use #snapshot_revert instead.' + Fog::Logger.deprecation 'This method is DEPRECATED. Use #snapshot_revert instead.' snapshot_revert(snapshot_ref) end end diff --git a/lib/fog/compute/xen_server/models/servers.rb b/lib/fog/compute/xen_server/models/servers.rb index 3eea75d..f5073b0 100644 --- a/lib/fog/compute/xen_server/models/servers.rb +++ b/lib/fog/compute/xen_server/models/servers.rb @@ -8,17 +8,17 @@ class Servers < Fog::Collection model Fog::Compute::XenServer::Models::Server def templates - warn 'This method is DEPRECATED. Call #templates directly on the connection instead.' + Fog::Logger.deprecation 'This method is DEPRECATED. Call #templates directly on the connection instead.' service.templates end def custom_templates - warn 'This method is DEPRECATED. Call #custom_templates directly on the connection instead.' + Fog::Logger.deprecation 'This method is DEPRECATED. Call #custom_templates directly on the connection instead.' service.custom_templates end def builtin_templates - warn 'This method is DEPRECATED. Call #builtin_templates directly on the connection instead.' + Fog::Logger.deprecation 'This method is DEPRECATED. Call #builtin_templates directly on the connection instead.' service.builtin_templates end diff --git a/lib/fog/compute/xen_server/requests/snapshot_revert.rb b/lib/fog/compute/xen_server/requests/snapshot_revert.rb index 32c29bf..ac8b3e6 100644 --- a/lib/fog/compute/xen_server/requests/snapshot_revert.rb +++ b/lib/fog/compute/xen_server/requests/snapshot_revert.rb @@ -9,7 +9,7 @@ def snapshot_revert_server(snapshot_ref, extra_args = {}) alias_method :snapshot_revert_vm, :snapshot_revert_server def snapshot_server(snapshot_ref, extra_args = {}) - warn 'This method is DEPRECATED. Use #snapshot_revert_server instead.' + Fog::Logger.deprecation 'This method is DEPRECATED. Use #snapshot_revert_server instead.' snapshot_revert_server(snapshot_ref, extra_args = {}) end end