Module: Chef::DSL::Core

Extended by:
Mixin::LazyModuleInclude
Includes:
DeclareResource, Universal, Mixin::NotifyingBlock
Included in:
Recipe, Provider
Defined in:
lib/chef/dsl/core.rb

Overview

Part of a family of DSL mixins.

Chef::DSL::Recipe mixes into Recipes and LWRP Providers.

- this does not target core chef resources and providers.
- this is restricted to recipe/resource/provider context where a resource collection exists.
- cookbook authors should typically include modules into here.

Chef::DSL::Core mixes into Recipes, LWRP Providers and Core Providers

- this adds cores providers on top of the Recipe DSL.
- this is restricted to recipe/resource/provider context where a resource collection exists.
- core chef authors should typically include modules into here.

Chef::DSL::Universal mixes into Recipes, LWRP Resources+Providers, Core Resources+Providers, and Attributes files.

- this adds resources and attributes files.
- do not add helpers which manipulate the resource collection.
- this is for general-purpose stuff that is useful nearly everywhere.
- it also pollutes the namespace of nearly every context, watch out.

Method Summary

Methods included from Mixin::LazyModuleInclude

descendants, include, included

Methods included from Mixin::NotifyingBlock

#notifying_block, #subcontext_block

Methods included from DeclareResource

#build_resource, #declare_resource, #delete_resource, #delete_resource!, #edit_resource, #edit_resource!, #find_resource, #find_resource!, #resources, #with_run_context

Methods included from Mixin::TrainOrShell

#train_or_powershell, #train_or_powershell!, #train_or_shell, #train_or_shell!

Methods included from Mixin::PowershellOut

#powershell_out, #powershell_out!

Methods included from Mixin::WindowsArchitectureHelper

#assert_valid_windows_architecture!, #disable_wow64_file_redirection, #forced_32bit_override_required?, #is_i386_process_on_x86_64_windows?, #node_supports_windows_architecture?, #node_windows_architecture, #restore_wow64_file_redirection, #valid_windows_architecture?, #with_os_architecture, #wow64_architecture_override_required?, #wow64_directory

Methods included from Mixin::ShellOut

apply_default_env, maybe_add_timeout, #shell_out, #shell_out!

Methods included from Mixin::PathSanity

#enforce_path_sanity, #sanitized_path

Methods included from Mixin::PowershellExec

#powershell_exec

Methods included from Powershell

#ps_credential

Methods included from RegistryHelper

#registry_data_exists?, #registry_get_subkeys, #registry_get_values, #registry_has_subkeys?, #registry_key_exists?, #registry_value_exists?

Methods included from DataQuery

#data_bag, #data_bag_item, #search, #tagged?

Methods included from EncryptedDataBagItem::CheckEncrypted

#encrypted?

Methods included from PlatformIntrospection

#docker?, #older_than_win_2012_or_8?, #platform?, #platform_family?, #value_for_platform, #value_for_platform_family