Class: Chef::Deprecated

Inherits:
Object
  • Object
show all
Extended by:
Mixin::ConvertToClassName
Defined in:
lib/chef/deprecated.rb

Defined Under Namespace

Classes: Attributes, Base, ChefPlatformMethods, ChefRest, CustomResource, DnfPackageAllowDowngrade, EasyInstall, ExitCode, Generic, InternalApi, JsonAutoInflate, LaunchdHashProperty, LocalListen, MultiresourceMatch, NamespaceCollisions, PackageMisc, PropertyNameCollision, RunCommand, SupportsProperty, UseInlineResources, VerifyFile

Class Method Summary collapse

Methods included from Mixin::ConvertToClassName

constantize, convert_to_class_name, convert_to_snake_case, filename_to_qualified_string, normalize_snake_case_name, snake_case_basename

Class Method Details

.create(type, message = nil, location = nil) ⇒ Object


27
28
29
# File 'lib/chef/deprecated.rb', line 27

def create(type, message = nil, location = nil)
  Chef::Deprecated.const_get(convert_to_class_name(type.to_s)).send(:new, message, location)
end