Class: Chef

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/version.rb,
lib/chef/log.rb,
lib/chef/org.rb,
lib/chef/http.rb,
lib/chef/node.rb,
lib/chef/rest.rb,
lib/chef/rest.rb,
lib/chef/role.rb,
lib/chef/user.rb,
lib/chef/knife.rb,
lib/chef/client.rb,
lib/chef/config.rb,
lib/chef/daemon.rb,
lib/chef/recipe.rb,
lib/chef/runner.rb,
lib/chef/chef_fs.rb,
lib/chef/handler.rb,
lib/chef/sandbox.rb,
lib/chef/data_bag.rb,
lib/chef/digester.rb,
lib/chef/node_map.rb,
lib/chef/platform.rb,
lib/chef/provider.rb,
lib/chef/resource.rb,
lib/chef/run_list.rb,
lib/chef/run_lock.rb,
lib/chef/dsl/audit.rb,
lib/chef/knife/raw.rb,
lib/chef/knife/ssh.rb,
lib/chef/shell_out.rb,
lib/chef/util/diff.rb,
lib/chef/whitelist.rb,
lib/chef/win32/api.rb,
lib/chef/api_client.rb,
lib/chef/chef_class.rb,
lib/chef/dsl/recipe.rb,
lib/chef/exceptions.rb,
lib/chef/file_cache.rb,
lib/chef/knife/deps.rb,
lib/chef/knife/diff.rb,
lib/chef/knife/edit.rb,
lib/chef/knife/help.rb,
lib/chef/knife/list.rb,
lib/chef/knife/show.rb,
lib/chef/local_mode.rb,
lib/chef/request_id.rb,
lib/chef/server_api.rb,
lib/chef/win32/file.rb,
lib/chef/application.rb,
lib/chef/environment.rb,
lib/chef/http/simple.rb,
lib/chef/json_compat.rb,
lib/chef/knife/serve.rb,
lib/chef/knife/xargs.rb,
lib/chef/mixin/which.rb,
lib/chef/null_logger.rb,
lib/chef/run_context.rb,
lib/chef/util/backup.rb,
lib/chef/util/editor.rb,
lib/chef/win32/error.rb,
lib/chef/win32/mutex.rb,
lib/chef/audit/runner.rb,
lib/chef/knife/delete.rb,
lib/chef/knife/search.rb,
lib/chef/knife/status.rb,
lib/chef/knife/upload.rb,
lib/chef/nil_argument.rb,
lib/chef/provider/env.rb,
lib/chef/provider/git.rb,
lib/chef/provider/log.rb,
lib/chef/resource/csh.rb,
lib/chef/resource/env.rb,
lib/chef/resource/git.rb,
lib/chef/resource/log.rb,
lib/chef/resource/scm.rb,
lib/chef/search/query.rb,
lib/chef/util/selinux.rb,
lib/chef/util/windows.rb,
lib/chef/win32/crypto.rb,
lib/chef/win32/handle.rb,
lib/chef/win32/memory.rb,
lib/chef/chef_fs/knife.rb,
lib/chef/data_bag_item.rb,
lib/chef/knife/core/ui.rb,
lib/chef/mixin/command.rb,
lib/chef/mixin/why_run.rb,
lib/chef/provider/cron.rb,
lib/chef/provider/file.rb,
lib/chef/provider/link.rb,
lib/chef/provider/ohai.rb,
lib/chef/provider/user.rb,
lib/chef/resource/bash.rb,
lib/chef/resource/cron.rb,
lib/chef/resource/file.rb,
lib/chef/resource/link.rb,
lib/chef/resource/ohai.rb,
lib/chef/resource/perl.rb,
lib/chef/resource/ruby.rb,
lib/chef/resource/user.rb,
lib/chef/version_class.rb,
lib/chef/win32/api/net.rb,
lib/chef/win32/process.rb,
lib/chef/win32/unicode.rb,
lib/chef/win32/version.rb,
lib/chef/chef_fs/config.rb,
lib/chef/config_fetcher.rb,
lib/chef/dsl/data_query.rb,
lib/chef/dsl/powershell.rb,
lib/chef/formatters/doc.rb,
lib/chef/knife/download.rb,
lib/chef/knife/tag_list.rb,
lib/chef/mixin/checksum.rb,
lib/chef/mixin/language.rb,
lib/chef/mixin/provides.rb,
lib/chef/mixin/template.rb,
lib/chef/node/attribute.rb,
lib/chef/policy_builder.rb,
lib/chef/provider/batch.rb,
lib/chef/provider/group.rb,
lib/chef/provider/mdadm.rb,
lib/chef/provider/mount.rb,
lib/chef/reserved_names.rb,
lib/chef/resource/batch.rb,
lib/chef/resource/group.rb,
lib/chef/resource/mdadm.rb,
lib/chef/resource/mount.rb,
lib/chef/resource/route.rb,
lib/chef/util/file_edit.rb,
lib/chef/win32/api/file.rb,
lib/chef/win32/registry.rb,
lib/chef/win32/security.rb,
lib/chef/cookbook_loader.rb,
lib/chef/formatters/base.rb,
lib/chef/http/cookie_jar.rb,
lib/chef/http/json_input.rb,
lib/chef/knife/bootstrap.rb,
lib/chef/knife/configure.rb,
lib/chef/knife/node_edit.rb,
lib/chef/knife/node_list.rb,
lib/chef/knife/node_show.rb,
lib/chef/knife/role_edit.rb,
lib/chef/knife/role_list.rb,
lib/chef/knife/role_show.rb,
lib/chef/knife/ssl_check.rb,
lib/chef/knife/ssl_fetch.rb,
lib/chef/knife/user_edit.rb,
lib/chef/knife/user_list.rb,
lib/chef/knife/user_show.rb,
lib/chef/mixin/from_file.rb,
lib/chef/mixin/securable.rb,
lib/chef/mixin/shell_out.rb,
lib/chef/provider/deploy.rb,
lib/chef/provider/reboot.rb,
lib/chef/provider/script.rb,
lib/chef/resource/deploy.rb,
lib/chef/resource/python.rb,
lib/chef/resource/reboot.rb,
lib/chef/resource/script.rb,
lib/chef/win32/api/error.rb,
lib/chef/win32/api/psapi.rb,
lib/chef/win32/file/info.rb,
lib/chef/cookbook_version.rb,
lib/chef/http/json_output.rb,
lib/chef/knife/tag_create.rb,
lib/chef/knife/tag_delete.rb,
lib/chef/mixin/deep_merge.rb,
lib/chef/mixin/file_class.rb,
lib/chef/mixin/xml_escape.rb,
lib/chef/provider/execute.rb,
lib/chef/provider/package.rb,
lib/chef/provider/service.rb,
lib/chef/provider/user/pw.rb,
lib/chef/resource/execute.rb,
lib/chef/resource/package.rb,
lib/chef/resource/service.rb,
lib/chef/resource_builder.rb,
lib/chef/util/path_helper.rb,
lib/chef/version/platform.rb,
lib/chef/win32/api/crypto.rb,
lib/chef/win32/api/memory.rb,
lib/chef/win32/api/system.rb,
lib/chef/cookbook/metadata.rb,
lib/chef/cookbook_manifest.rb,
lib/chef/cookbook_uploader.rb,
lib/chef/guard_interpreter.rb,
lib/chef/handler/json_file.rb,
lib/chef/http/basic_client.rb,
lib/chef/http/decompressor.rb,
lib/chef/http/http_request.rb,
lib/chef/http/ssl_policies.rb,
lib/chef/knife/client_edit.rb,
lib/chef/knife/client_list.rb,
lib/chef/knife/client_show.rb,
lib/chef/knife/node_create.rb,
lib/chef/knife/node_delete.rb,
lib/chef/knife/role_create.rb,
lib/chef/knife/role_delete.rb,
lib/chef/knife/user_create.rb,
lib/chef/knife/user_delete.rb,
lib/chef/mixin/create_path.rb,
lib/chef/mixin/deprecation.rb,
lib/chef/mixin/path_sanity.rb,
lib/chef/platform/rebooter.rb,
lib/chef/provider/cron/aix.rb,
lib/chef/provider/erl_call.rb,
lib/chef/provider/group/pw.rb,
lib/chef/provider/ifconfig.rb,
lib/chef/provider/template.rb,
lib/chef/provider/user/aix.rb,
lib/chef/provider_resolver.rb,
lib/chef/resource/chef_gem.rb,
lib/chef/resource/erl_call.rb,
lib/chef/resource/ifconfig.rb,
lib/chef/resource/template.rb,
lib/chef/resource_reporter.rb,
lib/chef/resource_resolver.rb,
lib/chef/win32/api/process.rb,
lib/chef/win32/api/unicode.rb,
lib/chef/chef_fs/path_utils.rb,
lib/chef/dsl/include_recipe.rb,
lib/chef/dsl/reboot_pending.rb,
lib/chef/event_loggers/base.rb,
lib/chef/formatters/minimal.rb,
lib/chef/http/authenticator.rb,
lib/chef/mixin/command/unix.rb,
lib/chef/provider/cron/unix.rb,
lib/chef/provider/directory.rb,
lib/chef/provider/group/aix.rb,
lib/chef/provider/lwrp_base.rb,
lib/chef/provider/mount/aix.rb,
lib/chef/provider/user/dscl.rb,
lib/chef/resource/directory.rb,
lib/chef/resource/lwrp_base.rb,
lib/chef/version_constraint.rb,
lib/chef/win32/api/security.rb,
lib/chef/win32/security/ace.rb,
lib/chef/win32/security/acl.rb,
lib/chef/win32/security/sid.rb,
lib/chef/chef_fs/file_system.rb,
lib/chef/cookbook/chefignore.rb,
lib/chef/dsl/registry_helper.rb,
lib/chef/event_dispatch/base.rb,
lib/chef/file_access_control.rb,
lib/chef/http/cookie_manager.rb,
lib/chef/knife/client_create.rb,
lib/chef/knife/client_delete.rb,
lib/chef/knife/cookbook_list.rb,
lib/chef/knife/cookbook_show.rb,
lib/chef/knife/cookbook_test.rb,
lib/chef/knife/data_bag_edit.rb,
lib/chef/knife/data_bag_list.rb,
lib/chef/knife/data_bag_show.rb,
lib/chef/knife/index_rebuild.rb,
lib/chef/mixin/homebrew_user.rb,
lib/chef/provider/breakpoint.rb,
lib/chef/provider/dsc_script.rb,
lib/chef/provider/group/dscl.rb,
lib/chef/provider/group/suse.rb,
lib/chef/provider/ruby_block.rb,
lib/chef/provider/subversion.rb,
lib/chef/resource/breakpoint.rb,
lib/chef/resource/dsc_script.rb,
lib/chef/resource/ruby_block.rb,
lib/chef/resource/subversion.rb,
lib/chef/resource_collection.rb,
lib/chef/resource_definition.rb,
lib/chef/scan_access_control.rb,
lib/chef/win32/api/installer.rb,
lib/chef/audit/audit_reporter.rb,
lib/chef/chef_fs/command_line.rb,
lib/chef/chef_fs/file_pattern.rb,
lib/chef/chef_fs/parallelizer.rb,
lib/chef/cookbook/file_vendor.rb,
lib/chef/deprecation/warnings.rb,
lib/chef/handler/error_report.rb,
lib/chef/knife/node_from_file.rb,
lib/chef/knife/role_from_file.rb,
lib/chef/provider/env/windows.rb,
lib/chef/provider/mount/mount.rb,
lib/chef/provider/package/aix.rb,
lib/chef/provider/package/apt.rb,
lib/chef/provider/package/ips.rb,
lib/chef/provider/package/rpm.rb,
lib/chef/provider/package/yum.rb,
lib/chef/provider/remote_file.rb,
lib/chef/provider/service/aix.rb,
lib/chef/resource/apt_package.rb,
lib/chef/resource/bff_package.rb,
lib/chef/resource/conditional.rb,
lib/chef/resource/gem_package.rb,
lib/chef/resource/ips_package.rb,
lib/chef/resource/remote_file.rb,
lib/chef/resource/rpm_package.rb,
lib/chef/resource/yum_package.rb,
lib/chef/win32/security/token.rb,
lib/chef/audit/rspec_formatter.rb,
lib/chef/cookbook/synchronizer.rb,
lib/chef/cookbook/syntax_check.rb,
lib/chef/dsl/include_attribute.rb,
lib/chef/http/auth_credentials.rb,
lib/chef/knife/cookbook_create.rb,
lib/chef/knife/cookbook_delete.rb,
lib/chef/knife/cookbook_upload.rb,
lib/chef/knife/data_bag_create.rb,
lib/chef/knife/data_bag_delete.rb,
lib/chef/knife/user_reregister.rb,
lib/chef/mixin/command/windows.rb,
lib/chef/mixin/params_validate.rb,
lib/chef/provider/dsc_resource.rb,
lib/chef/provider/file/content.rb,
lib/chef/provider/http_request.rb,
lib/chef/provider/ifconfig/aix.rb,
lib/chef/provider/package/dpkg.rb,
lib/chef/provider/registry_key.rb,
lib/chef/provider/service/init.rb,
lib/chef/provider/user/solaris.rb,
lib/chef/provider/user/useradd.rb,
lib/chef/provider/user/windows.rb,
lib/chef/resource/dpkg_package.rb,
lib/chef/resource/dsc_resource.rb,
lib/chef/resource/http_request.rb,
lib/chef/resource/registry_key.rb,
lib/chef/http/remote_request_id.rb,
lib/chef/knife/configure_client.rb,
lib/chef/knife/core/node_editor.rb,
lib/chef/knife/environment_edit.rb,
lib/chef/knife/environment_list.rb,
lib/chef/knife/environment_show.rb,
lib/chef/knife/node_bulk_delete.rb,
lib/chef/knife/role_bulk_delete.rb,
lib/chef/platform/query_helpers.rb,
lib/chef/provider/cookbook_file.rb,
lib/chef/provider/group/gpasswd.rb,
lib/chef/provider/group/usermod.rb,
lib/chef/provider/group/windows.rb,
lib/chef/provider/mount/solaris.rb,
lib/chef/provider/mount/windows.rb,
lib/chef/resource/cookbook_file.rb,
lib/chef/run_list/run_list_item.rb,
lib/chef/util/dsc/resource_info.rb,
lib/chef/util/powershell/cmdlet.rb,
lib/chef/api_client/registration.rb,
lib/chef/audit/audit_event_proxy.rb,
lib/chef/formatters/error_mapper.rb,
lib/chef/knife/client_reregister.rb,
lib/chef/knife/cookbook_download.rb,
lib/chef/knife/cookbook_metadata.rb,
lib/chef/knife/node_run_list_add.rb,
lib/chef/knife/node_run_list_set.rb,
lib/chef/knife/role_run_list_add.rb,
lib/chef/knife/role_run_list_set.rb,
lib/chef/provider/group/groupadd.rb,
lib/chef/provider/group/groupmod.rb,
lib/chef/provider/package/pacman.rb,
lib/chef/provider/package/zypper.rb,
lib/chef/provider/service/debian.rb,
lib/chef/provider/service/macosx.rb,
lib/chef/provider/service/redhat.rb,
lib/chef/provider/service/simple.rb,
lib/chef/provider/windows_script.rb,
lib/chef/resource/macosx_service.rb,
lib/chef/resource/pacman_package.rb,
lib/chef/resource/windows_script.rb,
lib/chef/util/dsc/resource_store.rb,
lib/chef/util/threaded_job_queue.rb,
lib/chef/audit/control_group_data.rb,
lib/chef/file_access_control/unix.rb,
lib/chef/knife/client_bulk_delete.rb,
lib/chef/knife/cookbook_site_list.rb,
lib/chef/knife/cookbook_site_show.rb,
lib/chef/knife/core/object_loader.rb,
lib/chef/knife/data_bag_from_file.rb,
lib/chef/knife/environment_create.rb,
lib/chef/knife/environment_delete.rb,
lib/chef/mixin/windows_env_helper.rb,
lib/chef/platform/service_helpers.rb,
lib/chef/provider/deploy/revision.rb,
lib/chef/provider/ifconfig/debian.rb,
lib/chef/provider/ifconfig/redhat.rb,
lib/chef/provider/package/openbsd.rb,
lib/chef/provider/package/paludis.rb,
lib/chef/provider/package/portage.rb,
lib/chef/provider/package/smartos.rb,
lib/chef/provider/package/solaris.rb,
lib/chef/provider/package/windows.rb,
lib/chef/provider/remote_file/ftp.rb,
lib/chef/provider/resource_update.rb,
lib/chef/provider/service/aixinit.rb,
lib/chef/provider/service/freebsd.rb,
lib/chef/provider/service/insserv.rb,
lib/chef/provider/service/openbsd.rb,
lib/chef/provider/service/solaris.rb,
lib/chef/provider/service/upstart.rb,
lib/chef/provider/template_finder.rb,
lib/chef/resource/deploy_revision.rb,
lib/chef/resource/freebsd_package.rb,
lib/chef/resource/openbsd_package.rb,
lib/chef/resource/paludis_package.rb,
lib/chef/resource/portage_package.rb,
lib/chef/resource/smartos_package.rb,
lib/chef/resource/solaris_package.rb,
lib/chef/resource/windows_package.rb,
lib/chef/resource/windows_service.rb,
lib/chef/resource_definition_list.rb,
lib/chef/deprecation/provider/file.rb,
lib/chef/event_dispatch/dispatcher.rb,
lib/chef/http/json_to_model_output.rb,
lib/chef/knife/cookbook_site_share.rb,
lib/chef/knife/core/node_presenter.rb,
lib/chef/knife/core/text_formatter.rb,
lib/chef/knife/environment_compare.rb,
lib/chef/knife/role_run_list_clear.rb,
lib/chef/mixin/descendants_tracker.rb,
lib/chef/platform/provider_mapping.rb,
lib/chef/policy_builder/policyfile.rb,
lib/chef/provider/package/homebrew.rb,
lib/chef/provider/package/macports.rb,
lib/chef/provider/package/rubygems.rb,
lib/chef/provider/remote_directory.rb,
lib/chef/provider/remote_file/http.rb,
lib/chef/provider/template/content.rb,
lib/chef/resource/homebrew_package.rb,
lib/chef/resource/macports_package.rb,
lib/chef/resource/remote_directory.rb,
lib/chef/win32/api/synchronization.rb,
lib/chef/workstation_config_loader.rb,
lib/chef/chef_fs/chef_fs_data_store.rb,
lib/chef/deprecation/mixin/template.rb,
lib/chef/dsl/platform_introspection.rb,
lib/chef/knife/cookbook_bulk_delete.rb,
lib/chef/knife/cookbook_site_search.rb,
lib/chef/knife/node_environment_set.rb,
lib/chef/knife/node_run_list_remove.rb,
lib/chef/knife/role_run_list_remove.rb,
lib/chef/node/attribute_collections.rb,
lib/chef/node/immutable_collections.rb,
lib/chef/provider/powershell_script.rb,
lib/chef/provider/service/invokercd.rb,
lib/chef/resource/file/verification.rb,
lib/chef/resource/powershell_script.rb,
lib/chef/util/dsc/lcm_output_parser.rb,
lib/chef/application/windows_service.rb,
lib/chef/chef_fs/file_system/acl_dir.rb,
lib/chef/cookbook/remote_file_vendor.rb,
lib/chef/file_access_control/windows.rb,
lib/chef/formatters/error_descriptor.rb,
lib/chef/formatters/error_inspectors.rb,
lib/chef/knife/cookbook_site_install.rb,
lib/chef/knife/cookbook_site_unshare.rb,
lib/chef/knife/core/status_presenter.rb,
lib/chef/knife/environment_from_file.rb,
lib/chef/knife/role_env_run_list_add.rb,
lib/chef/knife/role_env_run_list_set.rb,
lib/chef/knife/role_run_list_replace.rb,
lib/chef/mixin/convert_to_class_name.rb,
lib/chef/provider/deploy/timestamped.rb,
lib/chef/resource/timestamped_deploy.rb,
lib/chef/run_list/run_list_expansion.rb,
lib/chef/version_constraint/platform.rb,
lib/chef/chef_fs/file_system/acls_dir.rb,
lib/chef/cookbook/cookbook_collection.rb,
lib/chef/http/validate_content_length.rb,
lib/chef/knife/cookbook_site_download.rb,
lib/chef/knife/core/bootstrap_context.rb,
lib/chef/knife/core/cookbook_scm_repo.rb,
lib/chef/knife/core/generic_presenter.rb,
lib/chef/knife/core/subcommand_loader.rb,
lib/chef/provider/package/freebsd/pkg.rb,
lib/chef/provider/package/windows/msi.rb,
lib/chef/provider/remote_file/content.rb,
lib/chef/provider/remote_file/fetcher.rb,
lib/chef/chef_fs/file_system/acl_entry.rb,
lib/chef/chef_fs/file_system/nodes_dir.rb,
lib/chef/chef_fs/file_system/org_entry.rb,
lib/chef/deprecation/provider/template.rb,
lib/chef/knife/data_bag_secret_options.rb,
lib/chef/knife/role_env_run_list_clear.rb,
lib/chef/mixin/get_source_from_package.rb,
lib/chef/mixin/language_include_recipe.rb,
lib/chef/provider/package/easy_install.rb,
lib/chef/provider/package/freebsd/base.rb,
lib/chef/provider/package/freebsd/port.rb,
lib/chef/resource/easy_install_package.rb,
lib/chef/run_context/cookbook_compiler.rb,
lib/chef/util/powershell/cmdlet_result.rb,
lib/chef/chef_fs/file_system/memory_dir.rb,
lib/chef/event_loggers/windows_eventlog.rb,
lib/chef/file_content_management/deploy.rb,
lib/chef/knife/bootstrap/client_builder.rb,
lib/chef/knife/role_env_run_list_remove.rb,
lib/chef/platform/provider_priority_map.rb,
lib/chef/platform/resource_priority_map.rb,
lib/chef/provider/cookbook_file/content.rb,
lib/chef/provider/package/freebsd/pkgng.rb,
lib/chef/resource/resource_notification.rb,
lib/chef/run_list/versioned_recipe_list.rb,
lib/chef/chef_fs/file_system/base_fs_dir.rb,
lib/chef/chef_fs/file_system/memory_file.rb,
lib/chef/chef_fs/file_system/memory_root.rb,
lib/chef/knife/role_env_run_list_replace.rb,
lib/chef/mixin/powershell_type_coercions.rb,
lib/chef/provider/remote_file/local_file.rb,
lib/chef/provider/whyrun_safe_ruby_block.rb,
lib/chef/resource/whyrun_safe_ruby_block.rb,
lib/chef/win32/security/securable_object.rb,
lib/chef/chef_fs/file_system/cookbook_dir.rb,
lib/chef/chef_fs/file_system/data_bag_dir.rb,
lib/chef/cookbook/cookbook_version_loader.rb,
lib/chef/cookbook/file_system_file_vendor.rb,
lib/chef/cookbook_site_streaming_uploader.rb,
lib/chef/deprecation/provider/remote_file.rb,
lib/chef/file_content_management/tempfile.rb,
lib/chef/http/socketless_chef_zero_client.rb,
lib/chef/mixin/language_include_attribute.rb,
lib/chef/mixin/recipe_definition_dsl_core.rb,
lib/chef/resource_collection/resource_set.rb,
lib/chef/chef_fs/file_system/cookbook_file.rb,
lib/chef/chef_fs/file_system/cookbooks_dir.rb,
lib/chef/chef_fs/file_system/data_bags_dir.rb,
lib/chef/chef_fs/file_system/rest_list_dir.rb,
lib/chef/file_content_management/deploy/cp.rb,
lib/chef/knife/cookbook_metadata_from_file.rb,
lib/chef/mixin/windows_architecture_helper.rb,
lib/chef/policy_builder/expand_node_object.rb,
lib/chef/resource_collection/resource_list.rb,
lib/chef/chef_fs/file_system/base_fs_object.rb,
lib/chef/deprecation/provider/cookbook_file.rb,
lib/chef/knife/bootstrap/chef_vault_handler.rb,
lib/chef/win32/security/security_descriptor.rb,
lib/chef/application/windows_service_manager.rb,
lib/chef/chef_fs/file_system/cookbook_subdir.rb,
lib/chef/chef_fs/file_system/multiplexed_dir.rb,
lib/chef/chef_fs/file_system/not_found_error.rb,
lib/chef/chef_fs/file_system/rest_list_entry.rb,
lib/chef/event_dispatch/events_output_stream.rb,
lib/chef/formatters/indentable_output_stream.rb,
lib/chef/chef_fs/file_system/environments_dir.rb,
lib/chef/file_content_management/content_base.rb,
lib/chef/chef_fs/data_handler/acl_data_handler.rb,
lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb,
lib/chef/chef_fs/file_system/file_system_entry.rb,
lib/chef/chef_fs/file_system/file_system_error.rb,
lib/chef/resource_collection/stepable_iterator.rb,
lib/chef/chef_fs/data_handler/data_handler_base.rb,
lib/chef/chef_fs/data_handler/node_data_handler.rb,
lib/chef/chef_fs/data_handler/role_data_handler.rb,
lib/chef/chef_fs/data_handler/user_data_handler.rb,
lib/chef/file_content_management/deploy/mv_unix.rb,
lib/chef/chef_fs/data_handler/group_data_handler.rb,
lib/chef/chef_fs/parallelizer/flatten_enumerable.rb,
lib/chef/mixin/enforce_ownership_and_permissions.rb,
lib/chef/provider/remote_file/cache_control_data.rb,
lib/chef/resource/conditional_action_not_nothing.rb,
lib/chef/chef_fs/data_handler/client_data_handler.rb,
lib/chef/chef_fs/data_handler/policy_data_handler.rb,
lib/chef/chef_fs/file_system/already_exists_error.rb,
lib/chef/chef_fs/file_system/chef_server_root_dir.rb,
lib/chef/chef_fs/file_system/file_system_root_dir.rb,
lib/chef/chef_fs/parallelizer/parallel_enumerable.rb,
lib/chef/chef_fs/file_system/cookbook_frozen_error.rb,
lib/chef/chef_fs/file_system/nonexistent_fs_object.rb,
lib/chef/file_content_management/deploy/mv_windows.rb,
lib/chef/chef_fs/data_handler/cookbook_data_handler.rb,
lib/chef/chef_fs/file_system/operation_failed_error.rb,
lib/chef/chef_fs/data_handler/container_data_handler.rb,
lib/chef/guard_interpreter/default_guard_interpreter.rb,
lib/chef/guard_interpreter/resource_guard_interpreter.rb,
lib/chef/chef_fs/data_handler/environment_data_handler.rb,
lib/chef/chef_fs/data_handler/organization_data_handler.rb,
lib/chef/chef_fs/file_system/organization_invites_entry.rb,
lib/chef/chef_fs/file_system/organization_members_entry.rb,
lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb,
lib/chef/chef_fs/file_system/operation_not_allowed_error.rb,
lib/chef/formatters/error_inspectors/api_error_formatting.rb,
lib/chef/chef_fs/file_system/must_delete_recursively_error.rb,
lib/chef/formatters/error_inspectors/compile_error_inspector.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb,
lib/chef/formatters/error_inspectors/node_load_error_inspector.rb,
lib/chef/resource_collection/resource_collection_serialization.rb,
lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb,
lib/chef/chef_fs/data_handler/organization_members_data_handler.rb,
lib/chef/formatters/error_inspectors/resource_failure_inspector.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_acls_dir.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb,
lib/chef/formatters/error_inspectors/registration_error_inspector.rb,
lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_policies_dir.rb,
lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_data_bags_dir.rb,
lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb,
lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb,
lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb

Overview

Author

Daniel DeLeo (<[email protected]>)

Author

Tyler Cloke (<[email protected]>)

Copyright

Copyright © 2012 Opscode, Inc.

License

Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: ChefFS, DSL, Deprecation, EventDispatch, EventLoggers, Formatters, LocalMode, Mixin, PolicyBuilder, ReservedNames Classes: ApiClient, Application, Audit, Client, Config, ConfigFetcher, Cookbook, CookbookCacheCleaner, CookbookCollection, CookbookLoader, CookbookManifest, CookbookSiteStreamingUploader, CookbookSynchronizer, CookbookUploader, CookbookVersion, Daemon, DataBag, DataBagItem, DelayedEvaluator, Digester, EncryptedDataBagItem, Environment, Exceptions, FileAccessControl, FileCache, FileContentManagement, GuardInterpreter, HTTP, Handler, JSONCompat, Knife, Log, Node, NodeMap, NullLogger, Org, Platform, Provider, ProviderResolver, REST, Recipe, RequestID, Resource, ResourceBuilder, ResourceCollection, ResourceDefinition, ResourceDefinitionList, ResourceReporter, ResourceResolver, Role, RunContext, RunList, RunLock, RunStatus, Runner, Sandbox, ScanAccessControl, Search, ServerAPI, ShellOut, User, Util, Version, VersionConstraint, Whitelist, Win32, WorkstationConfigLoader

Constant Summary collapse

CHEF_ROOT =
File.dirname(File.expand_path(File.dirname(__FILE__)))
VERSION =
'12.3.0'
NIL_ARGUMENT =
Object.new

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.nodeChef::Node (readonly)

Get the node object

Returns:

  • (Chef::Node)

    node object of the chef-client run



39
40
41
# File 'lib/chef/chef_class.rb', line 39

def node
  @node
end

.run_contextChef::RunContext (readonly)

Get the run context

Returns:



44
45
46
# File 'lib/chef/chef_class.rb', line 44

def run_context
  @run_context
end

Class Method Details

.get_provider_priority_array(resource_name) ⇒ Array<Class>

Get the array of providers associated with a resource_name for the current node

Parameters:

  • resource_name (Symbol)

    name of the resource as a symbol

Returns:

  • (Array<Class>)

    Priority Array of Provider Classes to use for the resource_name on the node



50
51
52
# File 'lib/chef/chef_class.rb', line 50

def get_provider_priority_array(resource_name)
  @provider_priority_map.get_priority_array(node, resource_name).dup
end

.get_resource_priority_array(resource_name) ⇒ Array<Class>

Get the array of resources associated with a resource_name for the current node

Parameters:

  • resource_name (Symbol)

    name of the resource as a symbol

Returns:

  • (Array<Class>)

    Priority Array of Resource Classes to use for the resource_name on the node



58
59
60
# File 'lib/chef/chef_class.rb', line 58

def get_resource_priority_array(resource_name)
  @resource_priority_map.get_priority_array(node, resource_name).dup
end

.reset!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Resets the internal state



123
124
125
126
127
128
# File 'lib/chef/chef_class.rb', line 123

def reset!
  @run_context = nil
  @node = nil
  @provider_priority_map = nil
  @resource_priority_map = nil
end

.set_node(node) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the node object

Parameters:



108
109
110
# File 'lib/chef/chef_class.rb', line 108

def set_node(node)
  @node = node
end

.set_provider_priority_array(resource_name, priority_array, *filter) ⇒ Array<Class>

Set the array of providers associated with a resource_name for the current node

Parameters:

  • resource_name (Symbol)

    name of the resource as a symbol

  • priority_array (Array<Class>)

    Array of Classes to set as the priority for resource_name on the node

  • filter (Hash)

    Chef::Nodearray-style filter

Returns:

  • (Array<Class>)

    Modified Priority Array of Provider Classes to use for the resource_name on the node



68
69
70
# File 'lib/chef/chef_class.rb', line 68

def set_provider_priority_array(resource_name, priority_array, *filter)
  @provider_priority_map.set_priority_array(resource_name, priority_array, *filter).dup
end

.set_provider_priority_map(provider_priority_map) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the provider_priority_map

Parameters:

  • provider_priority_map (Chef::Platform::providerPriorityMap)


100
101
102
# File 'lib/chef/chef_class.rb', line 100

def set_provider_priority_map(provider_priority_map)
  @provider_priority_map = provider_priority_map
end

.set_resource_priority_array(resource_name, priority_array, *filter) ⇒ Array<Class>

Get the array of resources associated with a resource_name for the current node

Parameters:

  • resource_name (Symbol)

    name of the resource as a symbol

  • priority_array (Array<Class>)

    Array of Classes to set as the priority for resource_name on the node

  • filter (Hash)

    Chef::Nodearray-style filter

Returns:

  • (Array<Class>)

    Modified Priority Array of Resource Classes to use for the resource_name on the node



78
79
80
# File 'lib/chef/chef_class.rb', line 78

def set_resource_priority_array(resource_name, priority_array, *filter)
  @resource_priority_map.set_priority_array(resource_name, priority_array, *filter).dup
end

.set_resource_priority_map(resource_priority_map) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the resource_priority_map

Parameters:



92
93
94
# File 'lib/chef/chef_class.rb', line 92

def set_resource_priority_map(resource_priority_map)
  @resource_priority_map = resource_priority_map
end

.set_run_context(run_context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the run_context object

Parameters:



116
117
118
# File 'lib/chef/chef_class.rb', line 116

def set_run_context(run_context)
  @run_context = run_context
end