From 73c2035cc12770f3d37151f92bce4c6a822fb48a Mon Sep 17 00:00:00 2001 From: geemus Date: Sat, 17 Mar 2012 13:49:37 -0500 Subject: [PATCH] [slicehost] add deprecation warnings --- lib/fog/compute.rb | 1 + lib/fog/dns.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/fog/compute.rb b/lib/fog/compute.rb index 33fc4a1bc..5d7e19d45 100644 --- a/lib/fog/compute.rb +++ b/lib/fog/compute.rb @@ -61,6 +61,7 @@ module Fog require 'fog/rackspace/compute' Fog::Compute::Rackspace.new(attributes) when :slicehost + warn "[DEPRECATION] `slicehost` is deprecated. Please use `rackspace` instead." require 'fog/slicehost/compute' Fog::Compute::Slicehost.new(attributes) when :stormondemand diff --git a/lib/fog/dns.rb b/lib/fog/dns.rb index 951aeb34e..2ac71f869 100644 --- a/lib/fog/dns.rb +++ b/lib/fog/dns.rb @@ -27,6 +27,7 @@ module Fog require 'fog/linode/dns' Fog::DNS::Linode.new(attributes) when :slicehost + warn "[DEPRECATION] `slicehost` is deprecated. Please use `racksace` instead." require 'fog/slicehost/dns' Fog::DNS::Slicehost.new(attributes) when :zerigo