mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
more detailed deprecation warning
This commit is contained in:
parent
c3d5314aa3
commit
a0ac71b551
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module Fog
|
|||
def deprecate(older, newer)
|
||||
class_eval <<-EOS, __FILE__, __LINE__
|
||||
def #{older}(*args)
|
||||
Formatador.display_line("[yellow][WARN] fog: #{older} is deprecated, use #{newer} instead[/]")
|
||||
Formatador.display_line("[yellow][WARN] #{self} => ##{older} is deprecated, use ##{newer} instead[/]")
|
||||
#{newer}(*args)
|
||||
end
|
||||
EOS
|
||||
|
|
Loading…
Add table
Reference in a new issue