[slicehost] add deprecation warnings

This commit is contained in:
geemus 2012-03-17 13:49:37 -05:00
parent 9c47651995
commit 73c2035cc1
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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