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, ChefSugar, CustomResource, DeployResource, DnfPackageAllowDowngrade, EasyInstall, ErlResource, ExitCode, FreebsdPkgProvider, Generic, InternalApi, JsonAutoInflate, LaunchdHashProperty, LocalListen, LocaleLcAll, MultiresourceMatch, NamespaceCollisions, PackageMisc, Property, PropertyNameCollision, RunCommand, ShellOut, 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, location) ⇒ Object



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

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