1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

pass args through deprecate

This commit is contained in:
geemus 2010-04-25 11:26:48 -07:00
parent 24adf4b7ff
commit c3d5314aa3

View file

@ -3,9 +3,9 @@ module Fog
def deprecate(older, newer)
class_eval <<-EOS, __FILE__, __LINE__
def #{older}
def #{older}(*args)
Formatador.display_line("[yellow][WARN] fog: #{older} is deprecated, use #{newer} instead[/]")
#{newer}
#{newer}(*args)
end
EOS
end