mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
15 lines
295 B
Ruby
15 lines
295 B
Ruby
![]() |
module Fog
|
||
|
module Deprecation
|
||
|
|
||
|
def deprecate(older, newer)
|
||
|
class_eval <<-EOS, __FILE__, __LINE__
|
||
|
def #{older}
|
||
|
Formatador.display_line("[yellow][WARN] fog: #{older} is deprecated, use #{newer} instead[/]")
|
||
|
#{newer}
|
||
|
end
|
||
|
EOS
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|