mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[bluebox] nicer deprecation warning around updated blocks namespacing
This commit is contained in:
parent
8ee2f6a484
commit
75ea140b79
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue