[bluebox] nicer deprecation warning around updated blocks namespacing

This commit is contained in:
geemus 2010-09-07 16:35:19 -07:00
parent 8ee2f6a484
commit 75ea140b79
1 changed files with 8 additions and 0 deletions

View File

@ -6,5 +6,13 @@ module Fog
service_path 'fog/bluebox'
service :blocks
def self.new(attributes = {})
location = caller.first
warning = "[yellow][WARN] Fog::Bluebox#new is deprecated, use Fog::Bluebox::Blocks#new instead[/]"
warning << " [light_black](" << location << ")[/] "
Formatador.display_line(warning)
Fog::Bluebox::Blocks.new(attributes)
end
end
end