Method: Awspec::Helper::Type.deprecate_resource_type
- Defined in:
- lib/awspec/helper/type.rb
.deprecate_resource_type(old_type, new_type) ⇒ Object
66 67 68 69 70 71 72 |
# File 'lib/awspec/helper/type.rb', line 66 def self.deprecate_resource_type(old_type, new_type) define_method(old_type) do |*args, &block| puts '' warn Color.on_red(Color.white("!!! `#{old_type}` type is deprecated. use `#{new_type}` !!!")) send(new_type, *args, &block) end end |