Class: Chef::Deprecated

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

Defined Under Namespace

Classes: ArchiveFileIntegerFileMode, AttributeBlacklistConfiguration, AttributeWhitelistConfiguration, Attributes, Base, ChefPlatformMethods, ChefRest, ChefSugar, CustomResource, DeployResource, DnfPackageAllowDowngrade, EasyInstall, ErlResource, ExitCode, FreebsdPkgProvider, Generic, InternalApi, JsonAutoInflate, KnifeBootstrapApis, LaunchdHashProperty, LocalListen, LocaleLcAll, MultiresourceMatch, NamespaceCollisions, PackageMisc, PolicyfileCompatMode, Property, PropertyNameCollision, ResourceNameWithoutProvides, RunCommand, ShellOut, SupportsProperty, UnifiedMode, UseInlineResources, VerifyFile

Class Method Summary collapse

Methods included from Mixin::ConvertToClassName

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