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:
parent
24adf4b7ff
commit
c3d5314aa3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue