Module: Chef::Deprecation::Warnings
- Included in:
- Provider::CookbookFile, Provider::File, Provider::RemoteDirectory, Provider::RemoteFile, Provider::Template
- Defined in:
- lib/chef/deprecation/warnings.rb
Instance Method Summary collapse
Instance Method Details
#add_deprecation_warnings_for(method_names) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/chef/deprecation/warnings.rb', line 23 def add_deprecation_warnings_for(method_names) method_names.each do |name| define_method(name) do |*args| = [] << "Method '#{name}' of '#{self.class}' is deprecated. It will be removed in Chef 13." << "Please update your cookbooks accordingly." Chef.log_deprecation() super(*args) end end end |