chef 12.6.0-universal-mingw32 → 12.7.2-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +26 -19
- data/README.md +26 -23
- data/Rakefile +28 -17
- data/VERSION +1 -0
- data/acceptance/.gitignore +1 -0
- data/acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml +27 -0
- data/acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml +281 -0
- data/acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml +49 -0
- data/acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb +46 -0
- data/acceptance/.shared/kitchen_acceptance/metadata.rb +1 -0
- data/acceptance/Gemfile +11 -0
- data/acceptance/README.md +86 -0
- data/acceptance/basics/.acceptance/acceptance-cookbook/.gitignore +2 -0
- data/acceptance/basics/.acceptance/acceptance-cookbook/metadata.rb +3 -0
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/destroy.rb +1 -0
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/provision.rb +1 -0
- data/acceptance/basics/.acceptance/acceptance-cookbook/recipes/verify.rb +1 -0
- data/acceptance/basics/.kitchen.yml +4 -0
- data/acceptance/basics/test/integration/chef-current-install/serverspec/chef_client_spec.rb +19 -0
- data/acceptance/basics/test/integration/chef-current-install/serverspec/spec_helper.rb +6 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore +2 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb +43 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb +21 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb +3 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb +1 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb +1 -0
- data/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb +1 -0
- data/acceptance/top-cookbooks/.gitignore +1 -0
- data/acceptance/top-cookbooks/.kitchen.git.yml +10 -0
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-rhel.yml +4 -0
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-ubuntu.yml +4 -0
- data/acceptance/top-cookbooks/.kitchen.learn-the-basics-windows.yml +4 -0
- data/acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore +2 -0
- data/acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb +2 -0
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb +1 -0
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb +1 -0
- data/acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb +1 -0
- data/acceptance/trivial/.kitchen.yml +7 -0
- data/acceptance/trivial/test/integration/chef-current-install/inspec/chef_client_spec.rb +5 -0
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore +2 -0
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb +2 -0
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb +1 -0
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb +1 -0
- data/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb +1 -0
- data/acceptance/windows-service/.kitchen.yml +7 -0
- data/acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb +58 -0
- data/bin/chef-apply +3 -3
- data/bin/chef-client +5 -5
- data/bin/chef-service-manager +7 -7
- data/bin/chef-shell +1 -1
- data/bin/chef-solo +4 -4
- data/bin/chef-windows-service +5 -5
- data/bin/knife +4 -5
- data/chef-windows.gemspec +5 -2
- data/chef.gemspec +13 -13
- data/distro/common/html/_static/basic.css +1 -1
- data/distro/common/html/_static/doctools.js +1 -1
- data/distro/common/html/_static/searchtools.js +1 -1
- data/distro/common/html/_static/websupport.js +1 -1
- data/ext/win32-eventlog/Rakefile +13 -14
- data/lib-backcompat/chef/chef_fs/file_system/acl_entry.rb +5 -0
- data/lib-backcompat/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb +5 -0
- data/lib-backcompat/chef/chef_fs/file_system/chef_server_root_dir.rb +5 -0
- data/lib/chef.rb +17 -17
- data/lib/chef/api_client.rb +31 -30
- data/lib/chef/api_client/registration.rb +34 -10
- data/lib/chef/api_client_v1.rb +36 -36
- data/lib/chef/application.rb +32 -23
- data/lib/chef/application/apply.rb +20 -20
- data/lib/chef/application/client.rb +63 -43
- data/lib/chef/application/knife.rb +21 -15
- data/lib/chef/application/solo.rb +52 -41
- data/lib/chef/application/windows_service.rb +25 -25
- data/lib/chef/application/windows_service_manager.rb +22 -22
- data/lib/chef/applications.rb +4 -4
- data/lib/chef/audit/audit_event_proxy.rb +3 -3
- data/lib/chef/audit/audit_reporter.rb +8 -10
- data/lib/chef/audit/control_group_data.rb +9 -10
- data/lib/chef/audit/logger.rb +3 -3
- data/lib/chef/audit/rspec_formatter.rb +2 -2
- data/lib/chef/audit/runner.rb +15 -14
- data/lib/chef/chef_class.rb +10 -7
- data/lib/chef/chef_fs.rb +51 -1
- data/lib/chef/chef_fs/chef_fs_data_store.rb +320 -125
- data/lib/chef/chef_fs/command_line.rb +8 -8
- data/lib/chef/chef_fs/config.rb +52 -23
- data/lib/chef/chef_fs/data_handler/acl_data_handler.rb +10 -10
- data/lib/chef/chef_fs/data_handler/client_data_handler.rb +12 -12
- data/lib/chef/chef_fs/data_handler/container_data_handler.rb +6 -6
- data/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb +15 -15
- data/lib/chef/chef_fs/data_handler/data_bag_item_data_handler.rb +11 -11
- data/lib/chef/chef_fs/data_handler/data_handler_base.rb +8 -8
- data/lib/chef/chef_fs/data_handler/environment_data_handler.rb +14 -14
- data/lib/chef/chef_fs/data_handler/group_data_handler.rb +18 -18
- data/lib/chef/chef_fs/data_handler/node_data_handler.rb +14 -14
- data/lib/chef/chef_fs/data_handler/organization_data_handler.rb +9 -9
- data/lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb +2 -2
- data/lib/chef/chef_fs/data_handler/organization_members_data_handler.rb +2 -2
- data/lib/chef/chef_fs/data_handler/policy_data_handler.rb +30 -3
- data/lib/chef/chef_fs/data_handler/policy_group_data_handler.rb +27 -0
- data/lib/chef/chef_fs/data_handler/role_data_handler.rb +16 -16
- data/lib/chef/chef_fs/data_handler/user_data_handler.rb +12 -12
- data/lib/chef/chef_fs/file_pattern.rb +25 -25
- data/lib/chef/chef_fs/file_system.rb +10 -10
- data/lib/chef/chef_fs/file_system/already_exists_error.rb +3 -6
- data/lib/chef/chef_fs/file_system/base_fs_dir.rb +4 -4
- data/lib/chef/chef_fs/file_system/base_fs_object.rb +8 -8
- data/lib/chef/chef_fs/file_system/chef_server/acl_dir.rb +65 -0
- data/lib/chef/chef_fs/file_system/chef_server/acl_entry.rb +60 -0
- data/lib/chef/chef_fs/file_system/chef_server/acls_dir.rb +75 -0
- data/lib/chef/chef_fs/file_system/chef_server/chef_server_root_dir.rb +196 -0
- data/lib/chef/chef_fs/file_system/{chef_repository_file_system_acls_dir.rb → chef_server/cookbook_artifact_dir.rb} +13 -12
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_artifacts_dir.rb +102 -0
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb +222 -0
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb +84 -0
- data/lib/chef/chef_fs/file_system/chef_server/cookbook_subdir.rb +61 -0
- data/lib/chef/chef_fs/file_system/chef_server/cookbooks_acl_dir.rb +42 -0
- data/lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb +102 -0
- data/lib/chef/chef_fs/file_system/chef_server/data_bag_dir.rb +71 -0
- data/lib/chef/chef_fs/file_system/chef_server/data_bags_dir.rb +69 -0
- data/lib/chef/chef_fs/file_system/chef_server/environments_dir.rb +57 -0
- data/lib/chef/chef_fs/file_system/chef_server/nodes_dir.rb +53 -0
- data/lib/chef/chef_fs/file_system/chef_server/org_entry.rb +31 -0
- data/lib/chef/chef_fs/file_system/chef_server/organization_invites_entry.rb +61 -0
- data/lib/chef/chef_fs/file_system/chef_server/organization_members_entry.rb +60 -0
- data/lib/chef/chef_fs/file_system/chef_server/policies_acl_dir.rb +41 -0
- data/lib/chef/chef_fs/file_system/chef_server/policies_dir.rb +160 -0
- data/lib/chef/chef_fs/file_system/chef_server/policy_group_entry.rb +137 -0
- data/lib/chef/chef_fs/file_system/chef_server/policy_groups_dir.rb +43 -0
- data/lib/chef/chef_fs/file_system/chef_server/policy_revision_entry.rb +34 -0
- data/lib/chef/chef_fs/file_system/chef_server/rest_list_dir.rb +178 -0
- data/lib/chef/chef_fs/file_system/chef_server/rest_list_entry.rb +187 -0
- data/lib/chef/chef_fs/file_system/chef_server/versioned_cookbook_dir.rb +45 -0
- data/lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb +107 -0
- data/lib/chef/chef_fs/file_system/cookbook_frozen_error.rb +3 -6
- data/lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb +3 -7
- data/lib/chef/chef_fs/file_system/file_system_error.rb +14 -3
- data/lib/chef/chef_fs/file_system/memory/memory_dir.rb +53 -0
- data/lib/chef/chef_fs/file_system/memory/memory_file.rb +20 -0
- data/lib/chef/chef_fs/file_system/memory/memory_root.rb +23 -0
- data/lib/chef/chef_fs/file_system/multiplexed_dir.rb +2 -2
- data/lib/chef/chef_fs/file_system/must_delete_recursively_error.rb +3 -6
- data/lib/chef/chef_fs/file_system/nonexistent_fs_object.rb +4 -4
- data/lib/chef/chef_fs/file_system/not_found_error.rb +3 -6
- data/lib/chef/chef_fs/file_system/operation_failed_error.rb +5 -5
- data/lib/chef/chef_fs/file_system/operation_not_allowed_error.rb +16 -18
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_acls_dir.rb +39 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_artifact_dir.rb +41 -0
- data/lib/chef/chef_fs/file_system/{chef_repository_file_system_policies_dir.rb → repository/chef_repository_file_system_cookbook_artifacts_dir.rb} +9 -13
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_dir.rb +95 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_entry.rb +82 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb +84 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_data_bags_dir.rb +38 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb +83 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_policies_dir.rb +38 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb +210 -0
- data/lib/chef/chef_fs/file_system/repository/chef_repository_file_system_versioned_cookbook_dir.rb +42 -0
- data/lib/chef/chef_fs/file_system/{chef_repository_file_system_data_bags_dir.rb → repository/chef_repository_file_system_versioned_cookbooks_dir.rb} +9 -11
- data/lib/chef/chef_fs/file_system/repository/file_system_entry.rb +117 -0
- data/lib/chef/chef_fs/file_system/{file_system_root_dir.rb → repository/file_system_root_dir.rb} +8 -6
- data/lib/chef/chef_fs/knife.rb +16 -16
- data/lib/chef/chef_fs/parallelizer.rb +3 -3
- data/lib/chef/chef_fs/parallelizer/flatten_enumerable.rb +1 -1
- data/lib/chef/chef_fs/parallelizer/parallel_enumerable.rb +3 -3
- data/lib/chef/chef_fs/path_utils.rb +11 -10
- data/lib/chef/client.rb +80 -71
- data/lib/chef/config.rb +10 -10
- data/lib/chef/config_fetcher.rb +12 -4
- data/lib/chef/constants.rb +2 -1
- data/lib/chef/cookbook/chefignore.rb +4 -5
- data/lib/chef/cookbook/cookbook_collection.rb +6 -6
- data/lib/chef/cookbook/cookbook_version_loader.rb +15 -15
- data/lib/chef/cookbook/file_system_file_vendor.rb +4 -4
- data/lib/chef/cookbook/file_vendor.rb +3 -4
- data/lib/chef/cookbook/metadata.rb +108 -107
- data/lib/chef/cookbook/remote_file_vendor.rb +7 -7
- data/lib/chef/cookbook/synchronizer.rb +11 -10
- data/lib/chef/cookbook/syntax_check.rb +14 -14
- data/lib/chef/cookbook_loader.rb +14 -14
- data/lib/chef/cookbook_manifest.rb +16 -15
- data/lib/chef/cookbook_site_streaming_uploader.rb +22 -22
- data/lib/chef/cookbook_uploader.rb +22 -21
- data/lib/chef/cookbook_version.rb +87 -87
- data/lib/chef/daemon.rb +6 -6
- data/lib/chef/data_bag.rb +32 -26
- data/lib/chef/data_bag_item.rb +43 -40
- data/lib/chef/delayed_evaluator.rb +1 -1
- data/lib/chef/deprecation/mixin/template.rb +4 -4
- data/lib/chef/deprecation/provider/cookbook_file.rb +2 -3
- data/lib/chef/deprecation/provider/file.rb +10 -10
- data/lib/chef/deprecation/provider/remote_directory.rb +5 -5
- data/lib/chef/deprecation/provider/remote_file.rb +3 -3
- data/lib/chef/deprecation/provider/template.rb +3 -3
- data/lib/chef/deprecation/warnings.rb +2 -2
- data/lib/chef/digester.rb +6 -6
- data/lib/chef/dsl.rb +6 -6
- data/lib/chef/dsl/audit.rb +4 -4
- data/lib/chef/dsl/chef_provisioning.rb +5 -5
- data/lib/chef/dsl/cheffish.rb +5 -5
- data/lib/chef/dsl/data_query.rb +10 -10
- data/lib/chef/dsl/declare_resource.rb +8 -8
- data/lib/chef/dsl/definitions.rb +1 -2
- data/lib/chef/dsl/include_attribute.rb +4 -6
- data/lib/chef/dsl/include_recipe.rb +4 -4
- data/lib/chef/dsl/platform_introspection.rb +8 -14
- data/lib/chef/dsl/powershell.rb +3 -3
- data/lib/chef/dsl/reboot_pending.rb +12 -13
- data/lib/chef/dsl/recipe.rb +20 -20
- data/lib/chef/dsl/registry_helper.rb +7 -3
- data/lib/chef/dsl/resources.rb +6 -5
- data/lib/chef/encrypted_data_bag_item.rb +10 -10
- data/lib/chef/encrypted_data_bag_item/assertions.rb +4 -4
- data/lib/chef/encrypted_data_bag_item/check_encrypted.rb +3 -3
- data/lib/chef/encrypted_data_bag_item/decryption_failure.rb +2 -2
- data/lib/chef/encrypted_data_bag_item/decryptor.rb +16 -14
- data/lib/chef/encrypted_data_bag_item/encrypted_data_bag_item_assertions.rb +1 -1
- data/lib/chef/encrypted_data_bag_item/encryption_failure.rb +1 -1
- data/lib/chef/encrypted_data_bag_item/encryptor.rb +20 -20
- data/lib/chef/encrypted_data_bag_item/unacceptable_encrypted_data_bag_item_format.rb +2 -2
- data/lib/chef/encrypted_data_bag_item/unsupported_cipher.rb +2 -2
- data/lib/chef/encrypted_data_bag_item/unsupported_encrypted_data_bag_item_format.rb +2 -2
- data/lib/chef/environment.rb +41 -34
- data/lib/chef/event_dispatch/base.rb +2 -2
- data/lib/chef/event_dispatch/dispatcher.rb +2 -2
- data/lib/chef/event_dispatch/dsl.rb +6 -5
- data/lib/chef/event_loggers/base.rb +3 -3
- data/lib/chef/event_loggers/windows_eventlog.rb +11 -11
- data/lib/chef/exceptions.rb +23 -34
- data/lib/chef/file_access_control.rb +6 -6
- data/lib/chef/file_access_control/unix.rb +5 -5
- data/lib/chef/file_access_control/windows.rb +5 -5
- data/lib/chef/file_cache.rb +21 -21
- data/lib/chef/file_content_management/content_base.rb +2 -2
- data/lib/chef/file_content_management/deploy.rb +5 -6
- data/lib/chef/file_content_management/deploy/cp.rb +2 -2
- data/lib/chef/file_content_management/deploy/mv_unix.rb +2 -3
- data/lib/chef/file_content_management/deploy/mv_windows.rb +4 -6
- data/lib/chef/file_content_management/tempfile.rb +3 -3
- data/lib/chef/formatters/base.rb +8 -9
- data/lib/chef/formatters/doc.rb +7 -7
- data/lib/chef/formatters/error_descriptor.rb +5 -5
- data/lib/chef/formatters/error_inspectors.rb +5 -5
- data/lib/chef/formatters/error_inspectors/api_error_formatting.rb +50 -15
- data/lib/chef/formatters/error_inspectors/compile_error_inspector.rb +11 -11
- data/lib/chef/formatters/error_inspectors/cookbook_resolve_error_inspector.rb +8 -8
- data/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb +8 -6
- data/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb +14 -13
- data/lib/chef/formatters/error_inspectors/registration_error_inspector.rb +19 -17
- data/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb +8 -11
- data/lib/chef/formatters/error_inspectors/run_list_expansion_error_inspector.rb +15 -14
- data/lib/chef/formatters/error_mapper.rb +2 -2
- data/lib/chef/formatters/indentable_output_stream.rb +5 -5
- data/lib/chef/formatters/minimal.rb +7 -9
- data/lib/chef/guard_interpreter.rb +3 -3
- data/lib/chef/guard_interpreter/default_guard_interpreter.rb +3 -4
- data/lib/chef/guard_interpreter/resource_guard_interpreter.rb +9 -9
- data/lib/chef/handler.rb +4 -4
- data/lib/chef/handler/error_report.rb +4 -4
- data/lib/chef/handler/json_file.rb +5 -5
- data/lib/chef/http.rb +32 -35
- data/lib/chef/http/auth_credentials.rb +12 -12
- data/lib/chef/http/authenticator.rb +17 -12
- data/lib/chef/http/basic_client.rb +20 -20
- data/lib/chef/http/cookie_jar.rb +7 -7
- data/lib/chef/http/cookie_manager.rb +8 -8
- data/lib/chef/http/decompressor.rb +7 -9
- data/lib/chef/http/http_request.rb +31 -32
- data/lib/chef/http/json_input.rb +9 -9
- data/lib/chef/http/json_output.rb +9 -9
- data/lib/chef/http/json_to_model_output.rb +4 -4
- data/lib/chef/http/remote_request_id.rb +6 -6
- data/lib/chef/http/simple.rb +23 -5
- data/lib/chef/http/simple_json.rb +43 -0
- data/lib/chef/http/socketless_chef_zero_client.rb +56 -57
- data/lib/chef/http/ssl_policies.rb +9 -9
- data/lib/chef/http/validate_content_length.rb +12 -12
- data/lib/chef/json_compat.rb +6 -6
- data/lib/chef/key.rb +44 -42
- data/lib/chef/knife.rb +47 -44
- data/lib/chef/knife/bootstrap.rb +32 -32
- data/lib/chef/knife/bootstrap/chef_vault_handler.rb +16 -23
- data/lib/chef/knife/bootstrap/client_builder.rb +15 -13
- data/lib/chef/knife/bootstrap/templates/chef-full.erb +1 -1
- data/lib/chef/knife/client_bulk_delete.rb +5 -5
- data/lib/chef/knife/client_create.rb +5 -5
- data/lib/chef/knife/client_delete.rb +6 -6
- data/lib/chef/knife/client_edit.rb +5 -5
- data/lib/chef/knife/client_key_create.rb +6 -6
- data/lib/chef/knife/client_key_delete.rb +6 -6
- data/lib/chef/knife/client_key_edit.rb +8 -9
- data/lib/chef/knife/client_key_list.rb +5 -5
- data/lib/chef/knife/client_key_show.rb +5 -5
- data/lib/chef/knife/client_list.rb +5 -5
- data/lib/chef/knife/client_reregister.rb +5 -5
- data/lib/chef/knife/client_show.rb +5 -5
- data/lib/chef/knife/configure.rb +14 -14
- data/lib/chef/knife/configure_client.rb +6 -6
- data/lib/chef/knife/cookbook_bulk_delete.rb +9 -10
- data/lib/chef/knife/cookbook_create.rb +12 -12
- data/lib/chef/knife/cookbook_delete.rb +10 -10
- data/lib/chef/knife/cookbook_download.rb +8 -10
- data/lib/chef/knife/cookbook_list.rb +5 -5
- data/lib/chef/knife/cookbook_metadata.rb +8 -8
- data/lib/chef/knife/cookbook_metadata_from_file.rb +5 -5
- data/lib/chef/knife/cookbook_show.rb +14 -18
- data/lib/chef/knife/cookbook_site_download.rb +22 -22
- data/lib/chef/knife/cookbook_site_install.rb +10 -10
- data/lib/chef/knife/cookbook_site_list.rb +6 -10
- data/lib/chef/knife/cookbook_site_search.rb +5 -10
- data/lib/chef/knife/cookbook_site_share.rb +17 -18
- data/lib/chef/knife/cookbook_site_show.rb +7 -12
- data/lib/chef/knife/cookbook_site_unshare.rb +6 -6
- data/lib/chef/knife/cookbook_site_vendor.rb +5 -5
- data/lib/chef/knife/cookbook_test.rb +6 -7
- data/lib/chef/knife/cookbook_upload.rb +19 -20
- data/lib/chef/knife/core/bootstrap_context.rb +25 -21
- data/lib/chef/knife/core/cookbook_scm_repo.rb +11 -12
- data/lib/chef/knife/core/custom_manifest_loader.rb +2 -2
- data/lib/chef/knife/core/gem_glob_loader.rb +11 -11
- data/lib/chef/knife/core/generic_presenter.rb +33 -34
- data/lib/chef/knife/core/hashed_command_loader.rb +6 -6
- data/lib/chef/knife/core/node_editor.rb +59 -38
- data/lib/chef/knife/core/node_presenter.rb +13 -14
- data/lib/chef/knife/core/object_loader.rb +9 -9
- data/lib/chef/knife/core/status_presenter.rb +17 -17
- data/lib/chef/knife/core/subcommand_loader.rb +19 -20
- data/lib/chef/knife/core/text_formatter.rb +13 -14
- data/lib/chef/knife/core/ui.rb +17 -18
- data/lib/chef/knife/data_bag_create.rb +11 -10
- data/lib/chef/knife/data_bag_delete.rb +6 -8
- data/lib/chef/knife/data_bag_edit.rb +8 -11
- data/lib/chef/knife/data_bag_from_file.rb +12 -11
- data/lib/chef/knife/data_bag_list.rb +4 -8
- data/lib/chef/knife/data_bag_secret_options.rb +6 -6
- data/lib/chef/knife/data_bag_show.rb +31 -31
- data/lib/chef/knife/delete.rb +6 -7
- data/lib/chef/knife/deps.rb +18 -18
- data/lib/chef/knife/diff.rb +8 -9
- data/lib/chef/knife/download.rb +11 -12
- data/lib/chef/knife/edit.rb +5 -6
- data/lib/chef/knife/environment_compare.rb +23 -23
- data/lib/chef/knife/environment_create.rb +5 -5
- data/lib/chef/knife/environment_delete.rb +5 -5
- data/lib/chef/knife/environment_edit.rb +5 -5
- data/lib/chef/knife/environment_from_file.rb +4 -5
- data/lib/chef/knife/environment_list.rb +5 -5
- data/lib/chef/knife/environment_show.rb +5 -5
- data/lib/chef/knife/exec.rb +7 -7
- data/lib/chef/knife/help.rb +7 -9
- data/lib/chef/knife/index_rebuild.rb +4 -5
- data/lib/chef/knife/key_create.rb +5 -5
- data/lib/chef/knife/key_create_base.rb +1 -1
- data/lib/chef/knife/key_delete.rb +2 -2
- data/lib/chef/knife/key_edit.rb +5 -5
- data/lib/chef/knife/key_edit_base.rb +1 -1
- data/lib/chef/knife/key_list.rb +12 -12
- data/lib/chef/knife/key_list_base.rb +1 -1
- data/lib/chef/knife/key_show.rb +4 -4
- data/lib/chef/knife/list.rb +14 -13
- data/lib/chef/knife/node_bulk_delete.rb +6 -12
- data/lib/chef/knife/node_create.rb +5 -8
- data/lib/chef/knife/node_delete.rb +5 -6
- data/lib/chef/knife/node_edit.rb +6 -8
- data/lib/chef/knife/node_environment_set.rb +4 -4
- data/lib/chef/knife/node_from_file.rb +10 -10
- data/lib/chef/knife/node_list.rb +5 -7
- data/lib/chef/knife/node_run_list_add.rb +8 -8
- data/lib/chef/knife/node_run_list_remove.rb +8 -8
- data/lib/chef/knife/node_run_list_set.rb +6 -6
- data/lib/chef/knife/node_show.rb +6 -7
- data/lib/chef/knife/osc_user_create.rb +5 -5
- data/lib/chef/knife/osc_user_delete.rb +5 -5
- data/lib/chef/knife/osc_user_edit.rb +5 -5
- data/lib/chef/knife/osc_user_list.rb +5 -5
- data/lib/chef/knife/osc_user_reregister.rb +5 -5
- data/lib/chef/knife/osc_user_show.rb +5 -5
- data/lib/chef/knife/raw.rb +18 -17
- data/lib/chef/knife/recipe_list.rb +4 -4
- data/lib/chef/knife/rehash.rb +9 -9
- data/lib/chef/knife/role_bulk_delete.rb +5 -10
- data/lib/chef/knife/role_create.rb +5 -7
- data/lib/chef/knife/role_delete.rb +5 -6
- data/lib/chef/knife/role_edit.rb +5 -8
- data/lib/chef/knife/role_env_run_list_add.rb +9 -9
- data/lib/chef/knife/role_env_run_list_clear.rb +4 -4
- data/lib/chef/knife/role_env_run_list_remove.rb +13 -13
- data/lib/chef/knife/role_env_run_list_replace.rb +6 -6
- data/lib/chef/knife/role_env_run_list_set.rb +6 -6
- data/lib/chef/knife/role_from_file.rb +6 -11
- data/lib/chef/knife/role_list.rb +5 -6
- data/lib/chef/knife/role_run_list_add.rb +9 -9
- data/lib/chef/knife/role_run_list_clear.rb +4 -4
- data/lib/chef/knife/role_run_list_remove.rb +13 -13
- data/lib/chef/knife/role_run_list_replace.rb +6 -6
- data/lib/chef/knife/role_run_list_set.rb +6 -6
- data/lib/chef/knife/role_show.rb +5 -8
- data/lib/chef/knife/search.rb +11 -11
- data/lib/chef/knife/serve.rb +10 -10
- data/lib/chef/knife/show.rb +4 -4
- data/lib/chef/knife/ssh.rb +34 -34
- data/lib/chef/knife/ssl_check.rb +12 -11
- data/lib/chef/knife/ssl_fetch.rb +13 -15
- data/lib/chef/knife/status.rb +10 -10
- data/lib/chef/knife/tag_create.rb +5 -5
- data/lib/chef/knife/tag_delete.rb +5 -5
- data/lib/chef/knife/tag_list.rb +5 -5
- data/lib/chef/knife/upload.rb +10 -11
- data/lib/chef/knife/user_create.rb +6 -8
- data/lib/chef/knife/user_delete.rb +6 -7
- data/lib/chef/knife/user_edit.rb +6 -7
- data/lib/chef/knife/user_key_create.rb +7 -7
- data/lib/chef/knife/user_key_delete.rb +6 -6
- data/lib/chef/knife/user_key_edit.rb +8 -9
- data/lib/chef/knife/user_key_list.rb +5 -5
- data/lib/chef/knife/user_key_show.rb +5 -5
- data/lib/chef/knife/user_list.rb +5 -5
- data/lib/chef/knife/user_reregister.rb +6 -7
- data/lib/chef/knife/user_show.rb +6 -6
- data/lib/chef/knife/xargs.rb +22 -23
- data/lib/chef/local_mode.rb +13 -11
- data/lib/chef/log.rb +10 -10
- data/lib/chef/log/syslog.rb +5 -6
- data/lib/chef/log/winevt.rb +12 -12
- data/lib/chef/mash.rb +6 -5
- data/lib/chef/mixin/api_version_request_handling.rb +1 -1
- data/lib/chef/mixin/checksum.rb +4 -4
- data/lib/chef/mixin/command.rb +13 -13
- data/lib/chef/mixin/command/unix.rb +7 -7
- data/lib/chef/mixin/command/windows.rb +6 -7
- data/lib/chef/mixin/convert_to_class_name.rb +11 -11
- data/lib/chef/mixin/create_path.rb +3 -3
- data/lib/chef/mixin/deep_merge.rb +3 -3
- data/lib/chef/mixin/deprecation.rb +24 -25
- data/lib/chef/mixin/descendants_tracker.rb +2 -3
- data/lib/chef/mixin/enforce_ownership_and_permissions.rb +3 -3
- data/lib/chef/mixin/file_class.rb +9 -11
- data/lib/chef/mixin/from_file.rb +3 -3
- data/lib/chef/mixin/get_source_from_package.rb +2 -3
- data/lib/chef/mixin/homebrew_user.rb +6 -6
- data/lib/chef/mixin/language.rb +5 -5
- data/lib/chef/mixin/language_include_attribute.rb +4 -5
- data/lib/chef/mixin/language_include_recipe.rb +4 -5
- data/lib/chef/mixin/params_validate.rb +38 -18
- data/lib/chef/mixin/path_sanity.rb +7 -7
- data/lib/chef/mixin/powershell_out.rb +5 -5
- data/lib/chef/mixin/powershell_type_coercions.rb +12 -10
- data/lib/chef/mixin/properties.rb +8 -8
- data/lib/chef/mixin/provides.rb +2 -2
- data/lib/chef/mixin/proxified_socket.rb +4 -4
- data/lib/chef/mixin/recipe_definition_dsl_core.rb +4 -4
- data/lib/chef/mixin/securable.rb +24 -27
- data/lib/chef/mixin/shell_out.rb +10 -10
- data/lib/chef/mixin/subclass_directive.rb +2 -2
- data/lib/chef/mixin/template.rb +8 -9
- data/lib/chef/mixin/unformatter.rb +1 -1
- data/lib/chef/mixin/uris.rb +2 -3
- data/lib/chef/mixin/which.rb +3 -3
- data/lib/chef/mixin/why_run.rb +6 -7
- data/lib/chef/mixin/wide_string.rb +7 -7
- data/lib/chef/mixin/windows_architecture_helper.rb +9 -10
- data/lib/chef/mixin/windows_env_helper.rb +10 -11
- data/lib/chef/mixin/xml_escape.rb +13 -13
- data/lib/chef/mixins.rb +13 -14
- data/lib/chef/monkey_patches/net-ssh-multi.rb +6 -6
- data/lib/chef/monkey_patches/net_http.rb +2 -2
- data/lib/chef/monkey_patches/webrick-utils.rb +6 -6
- data/lib/chef/monkey_patches/win32/registry.rb +6 -6
- data/lib/chef/monologger.rb +2 -4
- data/lib/chef/node.rb +66 -60
- data/lib/chef/node/attribute.rb +289 -289
- data/lib/chef/node/attribute_collections.rb +8 -8
- data/lib/chef/node/immutable_collections.rb +3 -3
- data/lib/chef/node_map.rb +11 -11
- data/lib/chef/null_logger.rb +3 -3
- data/lib/chef/org.rb +31 -30
- data/lib/chef/platform.rb +4 -4
- data/lib/chef/platform/handler_map.rb +2 -2
- data/lib/chef/platform/priority_map.rb +2 -2
- data/lib/chef/platform/provider_handler_map.rb +3 -3
- data/lib/chef/platform/provider_mapping.rb +33 -33
- data/lib/chef/platform/provider_priority_map.rb +2 -2
- data/lib/chef/platform/query_helpers.rb +10 -11
- data/lib/chef/platform/rebooter.rb +11 -11
- data/lib/chef/platform/resource_handler_map.rb +3 -3
- data/lib/chef/platform/resource_priority_map.rb +2 -2
- data/lib/chef/platform/service_helpers.rb +5 -5
- data/lib/chef/policy_builder.rb +5 -5
- data/lib/chef/policy_builder/dynamic.rb +10 -11
- data/lib/chef/policy_builder/expand_node_object.rb +24 -19
- data/lib/chef/policy_builder/policyfile.rb +13 -14
- data/lib/chef/property.rb +115 -49
- data/lib/chef/provider.rb +43 -43
- data/lib/chef/provider/apt_update.rb +79 -0
- data/lib/chef/provider/batch.rb +6 -6
- data/lib/chef/provider/breakpoint.rb +1 -1
- data/lib/chef/provider/cookbook_file.rb +5 -5
- data/lib/chef/provider/cookbook_file/content.rb +4 -4
- data/lib/chef/provider/cron.rb +8 -8
- data/lib/chef/provider/cron/aix.rb +1 -1
- data/lib/chef/provider/cron/solaris.rb +1 -1
- data/lib/chef/provider/cron/unix.rb +7 -7
- data/lib/chef/provider/deploy.rb +7 -8
- data/lib/chef/provider/deploy/revision.rb +9 -9
- data/lib/chef/provider/deploy/timestamped.rb +1 -1
- data/lib/chef/provider/directory.rb +8 -8
- data/lib/chef/provider/dsc_resource.rb +33 -27
- data/lib/chef/provider/dsc_script.rb +17 -17
- data/lib/chef/provider/env.rb +8 -8
- data/lib/chef/provider/env/windows.rb +3 -3
- data/lib/chef/provider/erl_call.rb +5 -5
- data/lib/chef/provider/execute.rb +8 -8
- data/lib/chef/provider/file.rb +24 -24
- data/lib/chef/provider/file/content.rb +4 -4
- data/lib/chef/provider/git.rb +33 -35
- data/lib/chef/provider/group.rb +7 -7
- data/lib/chef/provider/group/aix.rb +6 -6
- data/lib/chef/provider/group/dscl.rb +11 -11
- data/lib/chef/provider/group/gpasswd.rb +3 -3
- data/lib/chef/provider/group/groupadd.rb +8 -8
- data/lib/chef/provider/group/groupmod.rb +3 -3
- data/lib/chef/provider/group/pw.rb +2 -2
- data/lib/chef/provider/group/suse.rb +5 -5
- data/lib/chef/provider/group/usermod.rb +8 -8
- data/lib/chef/provider/group/windows.rb +5 -5
- data/lib/chef/provider/http_request.rb +15 -15
- data/lib/chef/provider/ifconfig.rb +15 -14
- data/lib/chef/provider/ifconfig/aix.rb +5 -4
- data/lib/chef/provider/ifconfig/debian.rb +6 -6
- data/lib/chef/provider/ifconfig/redhat.rb +3 -3
- data/lib/chef/provider/link.rb +13 -13
- data/lib/chef/provider/log.rb +1 -1
- data/lib/chef/provider/lwrp_base.rb +8 -8
- data/lib/chef/provider/mdadm.rb +4 -4
- data/lib/chef/provider/mount.rb +13 -13
- data/lib/chef/provider/mount/aix.rb +14 -14
- data/lib/chef/provider/mount/mount.rb +18 -18
- data/lib/chef/provider/mount/solaris.rb +30 -30
- data/lib/chef/provider/mount/windows.rb +4 -4
- data/lib/chef/provider/ohai.rb +2 -2
- data/lib/chef/provider/osx_profile.rb +256 -0
- data/lib/chef/provider/package.rb +19 -19
- data/lib/chef/provider/package/aix.rb +8 -9
- data/lib/chef/provider/package/apt.rb +12 -12
- data/lib/chef/provider/package/chocolatey.rb +277 -0
- data/lib/chef/provider/package/dpkg.rb +7 -7
- data/lib/chef/provider/package/easy_install.rb +14 -15
- data/lib/chef/provider/package/freebsd/base.rb +7 -7
- data/lib/chef/provider/package/freebsd/pkg.rb +8 -8
- data/lib/chef/provider/package/freebsd/pkgng.rb +6 -6
- data/lib/chef/provider/package/freebsd/port.rb +4 -4
- data/lib/chef/provider/package/homebrew.rb +16 -16
- data/lib/chef/provider/package/ips.rb +8 -8
- data/lib/chef/provider/package/macports.rb +1 -0
- data/lib/chef/provider/package/openbsd.rb +13 -13
- data/lib/chef/provider/package/pacman.rb +6 -9
- data/lib/chef/provider/package/paludis.rb +7 -10
- data/lib/chef/provider/package/portage.rb +10 -13
- data/lib/chef/provider/package/rpm.rb +7 -8
- data/lib/chef/provider/package/rubygems.rb +64 -64
- data/lib/chef/provider/package/smartos.rb +7 -10
- data/lib/chef/provider/package/solaris.rb +6 -11
- data/lib/chef/provider/package/windows.rb +38 -29
- data/lib/chef/provider/package/windows/exe.rb +9 -21
- data/lib/chef/provider/package/windows/msi.rb +12 -12
- data/lib/chef/provider/package/windows/registry_uninstall_entry.rb +7 -7
- data/lib/chef/provider/package/yum-dump.py +1 -1
- data/lib/chef/provider/package/yum.rb +43 -44
- data/lib/chef/provider/package/zypper.rb +57 -47
- data/lib/chef/provider/powershell_script.rb +14 -14
- data/lib/chef/provider/reboot.rb +5 -5
- data/lib/chef/provider/registry_key.rb +16 -16
- data/lib/chef/provider/remote_directory.rb +15 -15
- data/lib/chef/provider/remote_file.rb +5 -5
- data/lib/chef/provider/remote_file/cache_control_data.rb +11 -12
- data/lib/chef/provider/remote_file/content.rb +11 -11
- data/lib/chef/provider/remote_file/fetcher.rb +2 -2
- data/lib/chef/provider/remote_file/ftp.rb +11 -11
- data/lib/chef/provider/remote_file/http.rb +9 -9
- data/lib/chef/provider/remote_file/local_file.rb +5 -5
- data/lib/chef/provider/remote_file/network_file.rb +4 -4
- data/lib/chef/provider/route.rb +188 -188
- data/lib/chef/provider/ruby_block.rb +3 -3
- data/lib/chef/provider/script.rb +5 -5
- data/lib/chef/provider/service.rb +30 -30
- data/lib/chef/provider/service/aix.rb +4 -4
- data/lib/chef/provider/service/aixinit.rb +12 -12
- data/lib/chef/provider/service/arch.rb +5 -5
- data/lib/chef/provider/service/debian.rb +12 -13
- data/lib/chef/provider/service/freebsd.rb +7 -7
- data/lib/chef/provider/service/gentoo.rb +5 -5
- data/lib/chef/provider/service/init.rb +4 -4
- data/lib/chef/provider/service/insserv.rb +4 -4
- data/lib/chef/provider/service/invokercd.rb +3 -3
- data/lib/chef/provider/service/macosx.rb +19 -19
- data/lib/chef/provider/service/openbsd.rb +14 -14
- data/lib/chef/provider/service/redhat.rb +6 -6
- data/lib/chef/provider/service/simple.rb +10 -9
- data/lib/chef/provider/service/solaris.rb +8 -8
- data/lib/chef/provider/service/systemd.rb +4 -4
- data/lib/chef/provider/service/upstart.rb +8 -8
- data/lib/chef/provider/service/windows.rb +32 -78
- data/lib/chef/provider/subversion.rb +13 -13
- data/lib/chef/provider/template.rb +7 -7
- data/lib/chef/provider/template/content.rb +4 -4
- data/lib/chef/provider/template_finder.rb +2 -1
- data/lib/chef/provider/user.rb +9 -10
- data/lib/chef/provider/user/aix.rb +4 -3
- data/lib/chef/provider/user/dscl.rb +39 -40
- data/lib/chef/provider/user/pw.rb +9 -9
- data/lib/chef/provider/user/solaris.rb +9 -9
- data/lib/chef/provider/user/useradd.rb +9 -9
- data/lib/chef/provider/user/windows.rb +13 -13
- data/lib/chef/provider/whyrun_safe_ruby_block.rb +1 -1
- data/lib/chef/provider/windows_script.rb +5 -5
- data/lib/chef/provider_resolver.rb +3 -3
- data/lib/chef/providers.rb +113 -110
- data/lib/chef/recipe.rb +13 -14
- data/lib/chef/request_id.rb +4 -4
- data/lib/chef/resource.rb +103 -93
- data/lib/chef/resource/action_class.rb +3 -3
- data/lib/chef/resource/apt_package.rb +6 -17
- data/lib/chef/{shell/shell_rest.rb → resource/apt_update.rb} +14 -9
- data/lib/chef/resource/bash.rb +5 -5
- data/lib/chef/resource/batch.rb +4 -4
- data/lib/chef/resource/bff_package.rb +3 -3
- data/lib/chef/resource/breakpoint.rb +3 -4
- data/lib/chef/resource/chef_gem.rb +9 -25
- data/lib/chef/resource/chocolatey_package.rb +39 -0
- data/lib/chef/resource/conditional.rb +8 -8
- data/lib/chef/resource/conditional_action_not_nothing.rb +1 -1
- data/lib/chef/resource/cookbook_file.rb +10 -10
- data/lib/chef/resource/cron.rb +33 -33
- data/lib/chef/resource/csh.rb +5 -5
- data/lib/chef/resource/deploy.rb +76 -76
- data/lib/chef/resource/deploy_revision.rb +1 -1
- data/lib/chef/resource/directory.rb +12 -12
- data/lib/chef/resource/dpkg_package.rb +5 -6
- data/lib/chef/resource/dsc_resource.rb +121 -120
- data/lib/chef/resource/dsc_script.rb +25 -25
- data/lib/chef/resource/easy_install_package.rb +6 -25
- data/lib/chef/resource/env.rb +9 -9
- data/lib/chef/resource/erl_call.rb +15 -15
- data/lib/chef/resource/execute.rb +28 -28
- data/lib/chef/resource/file.rb +20 -87
- data/lib/chef/resource/file/verification.rb +11 -11
- data/lib/chef/resource/freebsd_package.rb +10 -9
- data/lib/chef/resource/gem_package.rb +8 -23
- data/lib/chef/resource/git.rb +4 -4
- data/lib/chef/resource/group.rb +18 -19
- data/lib/chef/resource/homebrew_package.rb +7 -18
- data/lib/chef/resource/http_request.rb +12 -12
- data/lib/chef/resource/ifconfig.rb +28 -28
- data/lib/chef/resource/ips_package.rb +5 -16
- data/lib/chef/resource/ksh.rb +3 -3
- data/lib/chef/resource/link.rb +18 -17
- data/lib/chef/resource/log.rb +9 -9
- data/lib/chef/resource/lwrp_base.rb +10 -10
- data/lib/chef/resource/macosx_service.rb +7 -7
- data/lib/chef/resource/macports_package.rb +3 -2
- data/lib/chef/resource/mdadm.rb +18 -19
- data/lib/chef/resource/mount.rb +34 -34
- data/lib/chef/resource/ohai.rb +7 -7
- data/lib/chef/resource/openbsd_package.rb +7 -6
- data/lib/chef/resource/osx_profile.rb +74 -0
- data/lib/chef/resource/package.rb +15 -69
- data/lib/chef/resource/pacman_package.rb +3 -2
- data/lib/chef/resource/paludis_package.rb +5 -7
- data/lib/chef/resource/perl.rb +5 -5
- data/lib/chef/resource/portage_package.rb +5 -4
- data/lib/chef/resource/powershell_script.rb +7 -7
- data/lib/chef/resource/python.rb +5 -5
- data/lib/chef/resource/reboot.rb +6 -6
- data/lib/chef/resource/registry_key.rb +15 -15
- data/lib/chef/resource/remote_directory.rb +23 -24
- data/lib/chef/resource/remote_file.rb +21 -21
- data/lib/chef/resource/resource_notification.rb +2 -2
- data/lib/chef/resource/route.rb +26 -26
- data/lib/chef/resource/rpm_package.rb +5 -15
- data/lib/chef/resource/ruby.rb +5 -5
- data/lib/chef/resource/ruby_block.rb +8 -8
- data/lib/chef/resource/scm.rb +36 -37
- data/lib/chef/resource/script.rb +13 -13
- data/lib/chef/resource/service.rb +32 -32
- data/lib/chef/resource/smartos_package.rb +4 -3
- data/lib/chef/resource/solaris_package.rb +4 -3
- data/lib/chef/resource/subversion.rb +6 -6
- data/lib/chef/resource/template.rb +19 -19
- data/lib/chef/resource/timestamped_deploy.rb +1 -1
- data/lib/chef/resource/user.rb +31 -31
- data/lib/chef/resource/whyrun_safe_ruby_block.rb +1 -1
- data/lib/chef/resource/windows_package.rb +21 -66
- data/lib/chef/resource/windows_script.rb +8 -8
- data/lib/chef/resource/windows_service.rb +9 -9
- data/lib/chef/resource/yum_package.rb +18 -42
- data/lib/chef/resource/zypper_package.rb +3 -2
- data/lib/chef/resource_builder.rb +4 -4
- data/lib/chef/resource_collection.rb +11 -11
- data/lib/chef/resource_collection/resource_collection_serialization.rb +5 -5
- data/lib/chef/resource_collection/resource_list.rb +6 -6
- data/lib/chef/resource_collection/resource_set.rb +6 -6
- data/lib/chef/resource_collection/stepable_iterator.rb +4 -4
- data/lib/chef/resource_definition.rb +7 -7
- data/lib/chef/resource_definition_list.rb +5 -5
- data/lib/chef/resource_reporter.rb +14 -15
- data/lib/chef/resource_resolver.rb +4 -5
- data/lib/chef/resources.rb +71 -68
- data/lib/chef/rest.rb +23 -23
- data/lib/chef/role.rb +49 -43
- data/lib/chef/run_context.rb +21 -23
- data/lib/chef/run_context/cookbook_compiler.rb +10 -13
- data/lib/chef/run_list.rb +17 -17
- data/lib/chef/run_list/run_list_expansion.rb +22 -26
- data/lib/chef/run_list/run_list_item.rb +8 -9
- data/lib/chef/run_list/versioned_recipe_list.rb +13 -13
- data/lib/chef/run_lock.rb +12 -12
- data/lib/chef/run_status.rb +3 -3
- data/lib/chef/runner.rb +11 -12
- data/lib/chef/scan_access_control.rb +7 -7
- data/lib/chef/search/query.rb +30 -16
- data/lib/chef/server_api.rb +42 -10
- data/lib/chef/shell.rb +24 -25
- data/lib/chef/shell/ext.rb +31 -31
- data/lib/chef/shell/model_wrapper.rb +7 -8
- data/lib/chef/shell/shell_session.rb +20 -19
- data/lib/chef/shell_out.rb +2 -2
- data/lib/chef/tasks/chef_repo.rake +62 -63
- data/lib/chef/user.rb +38 -37
- data/lib/chef/user_v1.rb +53 -58
- data/lib/chef/util/backup.rb +6 -6
- data/lib/chef/util/diff.rb +8 -8
- data/lib/chef/util/dsc/configuration_generator.rb +11 -11
- data/lib/chef/util/dsc/lcm_output_parser.rb +8 -8
- data/lib/chef/util/dsc/local_configuration_manager.rb +9 -9
- data/lib/chef/util/dsc/resource_info.rb +15 -15
- data/lib/chef/util/dsc/resource_store.rb +73 -74
- data/lib/chef/util/editor.rb +1 -2
- data/lib/chef/util/file_edit.rb +5 -5
- data/lib/chef/util/path_helper.rb +2 -2
- data/lib/chef/util/powershell/cmdlet.rb +119 -119
- data/lib/chef/util/powershell/cmdlet_result.rb +36 -36
- data/lib/chef/util/powershell/ps_credential.rb +2 -2
- data/lib/chef/util/selinux.rb +6 -6
- data/lib/chef/util/threaded_job_queue.rb +2 -2
- data/lib/chef/util/windows.rb +1 -1
- data/lib/chef/util/windows/net_group.rb +84 -85
- data/lib/chef/util/windows/net_use.rb +6 -6
- data/lib/chef/util/windows/net_user.rb +9 -8
- data/lib/chef/util/windows/volume.rb +3 -3
- data/lib/chef/version.rb +2 -2
- data/lib/chef/version/platform.rb +5 -5
- data/lib/chef/version_class.rb +6 -6
- data/lib/chef/version_constraint.rb +13 -13
- data/lib/chef/version_constraint/platform.rb +3 -3
- data/lib/chef/whitelist.rb +2 -2
- data/lib/chef/win32/api.rb +13 -8
- data/lib/chef/win32/api/crypto.rb +63 -63
- data/lib/chef/win32/api/error.rb +11 -10
- data/lib/chef/win32/api/file.rb +17 -16
- data/lib/chef/win32/api/installer.rb +15 -16
- data/lib/chef/win32/api/memory.rb +4 -4
- data/lib/chef/win32/api/net.rb +111 -123
- data/lib/chef/win32/api/process.rb +4 -4
- data/lib/chef/win32/api/psapi.rb +4 -4
- data/lib/chef/win32/api/registry.rb +4 -4
- data/lib/chef/win32/api/security.rb +51 -26
- data/lib/chef/win32/api/synchronization.rb +4 -4
- data/lib/chef/win32/api/system.rb +4 -4
- data/lib/chef/win32/api/unicode.rb +4 -4
- data/lib/chef/win32/crypto.rb +50 -50
- data/lib/chef/win32/error.rb +18 -15
- data/lib/chef/win32/eventlog.rb +2 -2
- data/lib/chef/win32/file.rb +14 -14
- data/lib/chef/win32/file/info.rb +3 -4
- data/lib/chef/win32/file/version_info.rb +4 -4
- data/lib/chef/win32/handle.rb +6 -6
- data/lib/chef/win32/memory.rb +4 -4
- data/lib/chef/win32/mutex.rb +4 -4
- data/lib/chef/win32/net.rb +26 -59
- data/lib/chef/win32/process.rb +7 -7
- data/lib/chef/win32/registry.rb +19 -33
- data/lib/chef/win32/security.rb +82 -20
- data/lib/chef/win32/security/ace.rb +6 -6
- data/lib/chef/win32/security/acl.rb +8 -8
- data/lib/chef/win32/security/securable_object.rb +5 -5
- data/lib/chef/win32/security/security_descriptor.rb +5 -5
- data/lib/chef/win32/security/sid.rb +81 -43
- data/lib/chef/win32/security/token.rb +6 -6
- data/lib/chef/win32/system.rb +4 -4
- data/lib/chef/win32/unicode.rb +7 -7
- data/lib/chef/win32/version.rb +26 -26
- data/lib/chef/workstation_config_loader.rb +2 -2
- data/spec/data/apt/chef-integration-test-1.0/debian/copyright +2 -2
- data/spec/data/apt/chef-integration-test-1.1/debian/copyright +2 -2
- data/spec/data/apt/chef-integration-test2-1.0/debian/copyright +2 -2
- data/spec/data/cookbooks/name-mismatch-versionnumber/recipes/default.rb +1 -1
- data/spec/data/cookbooks/supports-platform-constraints/metadata.rb +5 -0
- data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/recipes/default.rb +1 -1
- data/spec/data/invalid-metadata-chef-repo/invalid-metadata/metadata.rb +1 -2
- data/spec/data/invalid-metadata-chef-repo/invalid-metadata/recipes/default.rb +1 -1
- data/spec/functional/application_spec.rb +7 -7
- data/spec/functional/assets/chocolatey_feed/test-A.1.0.nupkg +0 -0
- data/spec/functional/assets/chocolatey_feed/test-A.1.5.nupkg +0 -0
- data/spec/functional/assets/chocolatey_feed/test-A.2.0.nupkg +0 -0
- data/spec/functional/assets/chocolatey_feed/test-B.1.0.nupkg +0 -0
- data/spec/functional/audit/rspec_formatter_spec.rb +8 -8
- data/spec/functional/audit/runner_spec.rb +9 -9
- data/spec/functional/dsl/reboot_pending_spec.rb +10 -15
- data/spec/functional/dsl/registry_helper_spec.rb +8 -10
- data/spec/functional/event_loggers/windows_eventlog_spec.rb +27 -22
- data/spec/functional/file_content_management/deploy_strategies_spec.rb +9 -10
- data/spec/functional/http/simple_spec.rb +11 -11
- data/spec/functional/knife/configure_spec.rb +5 -10
- data/spec/functional/knife/cookbook_delete_spec.rb +11 -11
- data/spec/functional/knife/exec_spec.rb +6 -6
- data/spec/functional/knife/smoke_test.rb +11 -3
- data/spec/functional/knife/ssh_spec.rb +22 -22
- data/spec/functional/mixin/powershell_out_spec.rb +3 -3
- data/spec/functional/mixin/shell_out_spec.rb +12 -12
- data/spec/functional/notifications_spec.rb +6 -7
- data/spec/functional/provider/remote_file/cache_control_data_spec.rb +11 -12
- data/spec/functional/provider/whyrun_safe_ruby_block_spec.rb +4 -4
- data/spec/functional/rebooter_spec.rb +12 -12
- data/spec/functional/resource/aix_service_spec.rb +7 -8
- data/spec/functional/resource/aixinit_service_spec.rb +20 -20
- data/spec/functional/resource/base.rb +1 -3
- data/spec/functional/resource/bash_spec.rb +6 -6
- data/spec/functional/resource/batch_spec.rb +5 -5
- data/spec/functional/resource/bff_spec.rb +10 -12
- data/spec/functional/resource/chocolatey_package_spec.rb +124 -0
- data/spec/functional/resource/cookbook_file_spec.rb +9 -9
- data/spec/functional/resource/cron_spec.rb +13 -13
- data/spec/functional/resource/deploy_revision_spec.rb +18 -18
- data/spec/functional/resource/directory_spec.rb +4 -4
- data/spec/functional/resource/dpkg_package_spec.rb +38 -38
- data/spec/functional/resource/dsc_resource_spec.rb +17 -22
- data/spec/functional/resource/dsc_script_spec.rb +104 -106
- data/spec/functional/resource/env_spec.rb +30 -30
- data/spec/functional/resource/execute_spec.rb +10 -10
- data/spec/functional/resource/file_spec.rb +12 -13
- data/spec/functional/resource/git_spec.rb +20 -20
- data/spec/functional/resource/group_spec.rb +21 -21
- data/spec/functional/resource/ifconfig_spec.rb +11 -11
- data/spec/functional/resource/link_spec.rb +140 -135
- data/spec/functional/resource/mount_spec.rb +17 -29
- data/spec/functional/resource/ohai_spec.rb +5 -8
- data/spec/functional/resource/package_spec.rb +11 -13
- data/spec/functional/resource/powershell_script_spec.rb +60 -60
- data/spec/functional/resource/reboot_spec.rb +12 -12
- data/spec/functional/resource/registry_spec.rb +71 -72
- data/spec/functional/resource/remote_directory_spec.rb +23 -23
- data/spec/functional/resource/remote_file_spec.rb +17 -17
- data/spec/functional/resource/rpm_spec.rb +14 -14
- data/spec/functional/resource/template_spec.rb +8 -8
- data/spec/functional/resource/user/dscl_spec.rb +3 -3
- data/spec/functional/resource/user/useradd_spec.rb +31 -37
- data/spec/functional/resource/user/windows_spec.rb +20 -20
- data/spec/functional/resource/windows_package_spec.rb +26 -35
- data/spec/functional/resource/windows_service_spec.rb +12 -8
- data/spec/functional/rest_spec.rb +6 -5
- data/spec/functional/run_lock_spec.rb +15 -14
- data/spec/functional/shell_spec.rb +11 -10
- data/spec/functional/tiny_server_spec.rb +18 -18
- data/spec/functional/util/path_helper_spec.rb +5 -5
- data/spec/functional/util/powershell/cmdlet_spec.rb +24 -27
- data/spec/functional/version_spec.rb +6 -6
- data/spec/functional/win32/crypto_spec.rb +7 -10
- data/spec/functional/win32/registry_spec.rb +105 -107
- data/spec/functional/win32/security_spec.rb +17 -17
- data/spec/functional/win32/service_manager_spec.rb +7 -8
- data/spec/functional/win32/sid_spec.rb +13 -13
- data/spec/functional/win32/version_info_spec.rb +7 -7
- data/spec/functional/win32/versions_spec.rb +13 -13
- data/spec/integration/client/client_spec.rb +65 -66
- data/spec/integration/client/ipv6_spec.rb +15 -16
- data/spec/integration/knife/chef_fs_data_store_spec.rb +432 -246
- data/spec/integration/knife/chef_repo_path_spec.rb +261 -261
- data/spec/integration/knife/chef_repository_file_system_spec.rb +84 -84
- data/spec/integration/knife/chefignore_spec.rb +82 -82
- data/spec/integration/knife/common_options_spec.rb +41 -41
- data/spec/integration/knife/cookbook_api_ipv6_spec.rb +9 -9
- data/spec/integration/knife/delete_spec.rb +262 -248
- data/spec/integration/knife/deps_spec.rb +301 -301
- data/spec/integration/knife/diff_spec.rb +237 -237
- data/spec/integration/knife/download_spec.rb +532 -401
- data/spec/integration/knife/list_spec.rb +310 -116
- data/spec/integration/knife/raw_spec.rb +39 -39
- data/spec/integration/knife/redirection_spec.rb +12 -12
- data/spec/integration/knife/serve_spec.rb +12 -12
- data/spec/integration/knife/show_spec.rb +59 -59
- data/spec/integration/knife/upload_spec.rb +661 -550
- data/spec/integration/recipes/lwrp_inline_resources_spec.rb +18 -18
- data/spec/integration/recipes/lwrp_spec.rb +7 -7
- data/spec/integration/recipes/provider_choice.rb +3 -2
- data/spec/integration/recipes/recipe_dsl_spec.rb +151 -124
- data/spec/integration/recipes/remote_directory.rb +2 -2
- data/spec/integration/recipes/resource_action_spec.rb +439 -328
- data/spec/integration/recipes/resource_converge_if_changed_spec.rb +12 -11
- data/spec/integration/recipes/resource_load_spec.rb +35 -33
- data/spec/integration/solo/solo_spec.rb +31 -32
- data/spec/scripts/ssl-serve.rb +12 -17
- data/spec/spec_helper.rb +48 -43
- data/spec/stress/win32/file_spec.rb +5 -5
- data/spec/stress/win32/memory_spec.rb +4 -4
- data/spec/stress/win32/security_spec.rb +8 -8
- data/spec/support/chef_helpers.rb +5 -6
- data/spec/support/key_helpers.rb +2 -2
- data/spec/support/lib/chef/provider/easy.rb +2 -2
- data/spec/support/lib/chef/provider/openldap_includer.rb +2 -2
- data/spec/support/lib/chef/provider/snakeoil.rb +2 -2
- data/spec/support/lib/chef/resource/cat.rb +4 -4
- data/spec/support/lib/chef/resource/one_two_three_four.rb +2 -2
- data/spec/support/lib/chef/resource/openldap_includer.rb +2 -3
- data/spec/support/lib/chef/resource/with_state.rb +4 -4
- data/spec/support/lib/chef/resource/zen_follower.rb +4 -4
- data/spec/support/lib/chef/resource/zen_master.rb +5 -6
- data/spec/support/lib/library_load_order.rb +0 -2
- data/spec/support/matchers/leak.rb +7 -5
- data/spec/support/mock/constant.rb +3 -3
- data/spec/support/mock/platform.rb +5 -5
- data/spec/support/platform_helpers.rb +36 -23
- data/spec/support/platforms/prof/gc.rb +2 -3
- data/spec/support/platforms/prof/win32.rb +3 -4
- data/spec/support/platforms/win32/spec_service.rb +3 -3
- data/spec/support/shared/context/client.rb +22 -14
- data/spec/support/shared/context/config.rb +3 -3
- data/spec/support/shared/context/win32.rb +9 -9
- data/spec/support/shared/examples/client.rb +4 -4
- data/spec/support/shared/functional/diff_disabled.rb +1 -1
- data/spec/support/shared/functional/directory_resource.rb +8 -8
- data/spec/support/shared/functional/file_resource.rb +20 -23
- data/spec/support/shared/functional/http.rb +33 -34
- data/spec/support/shared/functional/knife.rb +3 -3
- data/spec/support/shared/functional/securable_resource.rb +48 -48
- data/spec/support/shared/functional/securable_resource_with_reporting.rb +8 -12
- data/spec/support/shared/functional/win32_service.rb +3 -5
- data/spec/support/shared/functional/windows_script.rb +13 -13
- data/spec/support/shared/integration/app_server_support.rb +7 -7
- data/spec/support/shared/integration/integration_helper.rb +21 -21
- data/spec/support/shared/integration/knife_support.rb +13 -13
- data/spec/support/shared/matchers/exit_with_code.rb +2 -2
- data/spec/support/shared/matchers/match_environment_variable.rb +2 -2
- data/spec/support/shared/unit/api_error_inspector.rb +3 -5
- data/spec/support/shared/unit/api_versioning.rb +8 -8
- data/spec/support/shared/unit/execute_resource.rb +4 -4
- data/spec/support/shared/unit/file_system_support.rb +12 -13
- data/spec/support/shared/unit/knife_shared.rb +1 -2
- data/spec/support/shared/unit/mock_shellout.rb +5 -2
- data/spec/support/shared/unit/platform_introspector.rb +35 -37
- data/spec/support/shared/unit/provider/file.rb +29 -40
- data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +50 -51
- data/spec/support/shared/unit/resource/static_provider_resolution.rb +2 -5
- data/spec/support/shared/unit/script_resource.rb +10 -10
- data/spec/support/shared/unit/user_and_client_shared.rb +5 -6
- data/spec/support/shared/unit/windows_script_resource.rb +6 -7
- data/spec/tiny_server.rb +24 -24
- data/spec/unit/api_client/registration_spec.rb +41 -38
- data/spec/unit/api_client_spec.rb +13 -16
- data/spec/unit/api_client_v1_spec.rb +17 -19
- data/spec/unit/application/apply_spec.rb +3 -3
- data/spec/unit/application/client_spec.rb +12 -9
- data/spec/unit/application/knife_spec.rb +69 -17
- data/spec/unit/application/solo_spec.rb +29 -48
- data/spec/unit/application_spec.rb +171 -151
- data/spec/unit/audit/audit_event_proxy_spec.rb +13 -13
- data/spec/unit/audit/audit_reporter_spec.rb +18 -25
- data/spec/unit/audit/control_group_data_spec.rb +16 -17
- data/spec/unit/audit/logger_spec.rb +5 -5
- data/spec/unit/audit/rspec_formatter_spec.rb +4 -4
- data/spec/unit/audit/runner_spec.rb +11 -12
- data/spec/unit/chef_class_spec.rb +5 -5
- data/spec/unit/chef_fs/config_spec.rb +14 -18
- data/spec/unit/chef_fs/data_handler/group_handler_spec.rb +17 -17
- data/spec/unit/chef_fs/diff_spec.rb +75 -75
- data/spec/unit/chef_fs/file_pattern_spec.rb +368 -369
- data/spec/unit/chef_fs/file_system/cookbook_subdir_spec.rb +9 -9
- data/spec/unit/chef_fs/file_system/operation_failed_error_spec.rb +9 -9
- data/spec/unit/chef_fs/file_system_spec.rb +74 -74
- data/spec/unit/chef_fs/parallelizer.rb +63 -66
- data/spec/unit/chef_fs/path_util_spec.rb +45 -45
- data/spec/unit/chef_spec.rb +3 -3
- data/spec/unit/client_spec.rb +44 -44
- data/spec/unit/config_fetcher_spec.rb +56 -28
- data/spec/unit/config_spec.rb +2 -2
- data/spec/unit/cookbook/chefignore_spec.rb +12 -12
- data/spec/unit/cookbook/cookbook_version_loader_spec.rb +5 -6
- data/spec/unit/cookbook/file_vendor_spec.rb +8 -9
- data/spec/unit/cookbook/metadata_spec.rb +73 -76
- data/spec/unit/cookbook/synchronizer_spec.rb +31 -32
- data/spec/unit/cookbook/syntax_check_spec.rb +22 -22
- data/spec/unit/cookbook_loader_spec.rb +9 -10
- data/spec/unit/cookbook_manifest_spec.rb +27 -28
- data/spec/unit/cookbook_site_streaming_uploader_spec.rb +24 -24
- data/spec/unit/cookbook_spec.rb +3 -3
- data/spec/unit/cookbook_uploader_spec.rb +10 -11
- data/spec/unit/cookbook_version_file_specificity_spec.rb +49 -50
- data/spec/unit/cookbook_version_spec.rb +45 -48
- data/spec/unit/daemon_spec.rb +5 -5
- data/spec/unit/data_bag_item_spec.rb +29 -30
- data/spec/unit/data_bag_spec.rb +47 -47
- data/spec/unit/deprecation_spec.rb +11 -11
- data/spec/unit/digester_spec.rb +5 -6
- data/spec/unit/dsl/audit_spec.rb +5 -5
- data/spec/unit/dsl/data_query_spec.rb +12 -12
- data/spec/unit/dsl/platform_introspection_spec.rb +19 -20
- data/spec/unit/dsl/reboot_pending_spec.rb +17 -17
- data/spec/unit/dsl/recipe_spec.rb +4 -6
- data/spec/unit/dsl/regsitry_helper_spec.rb +9 -12
- data/spec/unit/dsl/resources_spec.rb +13 -13
- data/spec/unit/encrypted_data_bag_item/check_encrypted_spec.rb +7 -7
- data/spec/unit/encrypted_data_bag_item_spec.rb +11 -11
- data/spec/unit/environment_spec.rb +53 -53
- data/spec/unit/event_dispatch/dispatcher_spec.rb +3 -4
- data/spec/unit/event_dispatch/dsl_spec.rb +16 -16
- data/spec/unit/exceptions_spec.rb +10 -10
- data/spec/unit/file_access_control_spec.rb +32 -32
- data/spec/unit/file_cache_spec.rb +19 -19
- data/spec/unit/file_content_management/deploy/cp_spec.rb +3 -5
- data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +3 -5
- data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +5 -12
- data/spec/unit/formatters/base_spec.rb +29 -6
- data/spec/unit/formatters/doc_spec.rb +7 -7
- data/spec/unit/formatters/error_inspectors/api_error_formatting_spec.rb +9 -10
- data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +11 -11
- data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +4 -7
- data/spec/unit/formatters/error_inspectors/cookbook_sync_error_inspector_spec.rb +3 -3
- data/spec/unit/formatters/error_inspectors/node_load_error_inspector_spec.rb +3 -4
- data/spec/unit/formatters/error_inspectors/registration_error_inspector_spec.rb +3 -4
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +4 -6
- data/spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb +5 -7
- data/spec/unit/guard_interpreter/resource_guard_interpreter_spec.rb +9 -9
- data/spec/unit/guard_interpreter_spec.rb +3 -3
- data/spec/unit/handler/json_file_spec.rb +11 -12
- data/spec/unit/handler_spec.rb +7 -7
- data/spec/unit/http/authenticator_spec.rb +9 -7
- data/spec/unit/http/basic_client_spec.rb +3 -3
- data/spec/unit/http/http_request_spec.rb +22 -22
- data/spec/unit/http/json_input_spec.rb +7 -7
- data/spec/unit/http/simple_spec.rb +3 -3
- data/spec/unit/http/socketless_chef_zero_client_spec.rb +3 -4
- data/spec/unit/http/ssl_policies_spec.rb +18 -19
- data/spec/unit/http/validate_content_length_spec.rb +9 -9
- data/spec/unit/http_spec.rb +18 -18
- data/spec/unit/json_compat_spec.rb +16 -9
- data/spec/unit/key_spec.rb +41 -44
- data/spec/unit/knife/bootstrap/chef_vault_handler_spec.rb +41 -42
- data/spec/unit/knife/bootstrap/client_builder_spec.rb +30 -28
- data/spec/unit/knife/bootstrap_spec.rb +75 -37
- data/spec/unit/knife/client_bulk_delete_spec.rb +6 -6
- data/spec/unit/knife/client_create_spec.rb +11 -12
- data/spec/unit/knife/client_delete_spec.rb +13 -13
- data/spec/unit/knife/client_edit_spec.rb +9 -9
- data/spec/unit/knife/client_list_spec.rb +5 -5
- data/spec/unit/knife/client_reregister_spec.rb +13 -13
- data/spec/unit/knife/client_show_spec.rb +12 -12
- data/spec/unit/knife/configure_client_spec.rb +19 -20
- data/spec/unit/knife/configure_spec.rb +37 -39
- data/spec/unit/knife/cookbook_bulk_delete_spec.rb +17 -19
- data/spec/unit/knife/cookbook_create_spec.rb +32 -32
- data/spec/unit/knife/cookbook_delete_spec.rb +79 -79
- data/spec/unit/knife/cookbook_download_spec.rb +84 -85
- data/spec/unit/knife/cookbook_list_spec.rb +26 -26
- data/spec/unit/knife/cookbook_metadata_from_file_spec.rb +5 -5
- data/spec/unit/knife/cookbook_metadata_spec.rb +55 -55
- data/spec/unit/knife/cookbook_show_spec.rb +33 -34
- data/spec/unit/knife/cookbook_site_download_spec.rb +51 -53
- data/spec/unit/knife/cookbook_site_install_spec.rb +10 -8
- data/spec/unit/knife/cookbook_site_share_spec.rb +42 -42
- data/spec/unit/knife/cookbook_site_unshare_spec.rb +20 -20
- data/spec/unit/knife/cookbook_test_spec.rb +6 -6
- data/spec/unit/knife/cookbook_upload_spec.rb +69 -69
- data/spec/unit/knife/core/bootstrap_context_spec.rb +39 -33
- data/spec/unit/knife/core/cookbook_scm_repo_spec.rb +32 -32
- data/spec/unit/knife/core/custom_manifest_loader_spec.rb +3 -3
- data/spec/unit/knife/core/gem_glob_loader_spec.rb +23 -24
- data/spec/unit/knife/core/hashed_command_loader_spec.rb +8 -8
- data/spec/unit/knife/core/node_editor_spec.rb +211 -0
- data/spec/unit/knife/core/object_loader_spec.rb +12 -12
- data/spec/unit/knife/core/subcommand_loader_spec.rb +10 -10
- data/spec/unit/knife/core/ui_spec.rb +45 -45
- data/spec/unit/knife/data_bag_create_spec.rb +14 -14
- data/spec/unit/knife/data_bag_edit_spec.rb +12 -12
- data/spec/unit/knife/data_bag_from_file_spec.rb +9 -9
- data/spec/unit/knife/data_bag_secret_options_spec.rb +6 -6
- data/spec/unit/knife/data_bag_show_spec.rb +19 -19
- data/spec/unit/knife/environment_compare_spec.rb +32 -32
- data/spec/unit/knife/environment_create_spec.rb +2 -2
- data/spec/unit/knife/environment_delete_spec.rb +2 -2
- data/spec/unit/knife/environment_edit_spec.rb +2 -2
- data/spec/unit/knife/environment_from_file_spec.rb +5 -5
- data/spec/unit/knife/environment_list_spec.rb +4 -4
- data/spec/unit/knife/environment_show_spec.rb +2 -2
- data/spec/unit/knife/index_rebuild_spec.rb +14 -17
- data/spec/unit/knife/key_create_spec.rb +11 -12
- data/spec/unit/knife/key_delete_spec.rb +8 -10
- data/spec/unit/knife/key_edit_spec.rb +14 -17
- data/spec/unit/knife/key_helper.rb +2 -2
- data/spec/unit/knife/key_list_spec.rb +13 -13
- data/spec/unit/knife/key_show_spec.rb +11 -11
- data/spec/unit/knife/knife_help.rb +2 -2
- data/spec/unit/knife/node_bulk_delete_spec.rb +10 -13
- data/spec/unit/knife/node_delete_spec.rb +4 -4
- data/spec/unit/knife/node_edit_spec.rb +17 -18
- data/spec/unit/knife/node_environment_set_spec.rb +4 -4
- data/spec/unit/knife/node_from_file_spec.rb +5 -5
- data/spec/unit/knife/node_list_spec.rb +5 -6
- data/spec/unit/knife/node_run_list_add_spec.rb +5 -8
- data/spec/unit/knife/node_run_list_remove_spec.rb +27 -27
- data/spec/unit/knife/node_run_list_set_spec.rb +4 -4
- data/spec/unit/knife/node_show_spec.rb +6 -6
- data/spec/unit/knife/osc_user_create_spec.rb +7 -7
- data/spec/unit/knife/osc_user_delete_spec.rb +7 -7
- data/spec/unit/knife/osc_user_edit_spec.rb +6 -6
- data/spec/unit/knife/osc_user_list_spec.rb +3 -3
- data/spec/unit/knife/osc_user_reregister_spec.rb +10 -10
- data/spec/unit/knife/osc_user_show_spec.rb +8 -8
- data/spec/unit/knife/raw_spec.rb +6 -6
- data/spec/unit/knife/role_bulk_delete_spec.rb +4 -4
- data/spec/unit/knife/role_create_spec.rb +4 -4
- data/spec/unit/knife/role_delete_spec.rb +4 -4
- data/spec/unit/knife/role_edit_spec.rb +4 -6
- data/spec/unit/knife/role_env_run_list_add_spec.rb +9 -9
- data/spec/unit/knife/role_env_run_list_clear_spec.rb +38 -44
- data/spec/unit/knife/role_env_run_list_remove_spec.rb +46 -52
- data/spec/unit/knife/role_env_run_list_replace_spec.rb +49 -52
- data/spec/unit/knife/role_env_run_list_set_spec.rb +17 -20
- data/spec/unit/knife/role_from_file_spec.rb +7 -7
- data/spec/unit/knife/role_list_spec.rb +5 -7
- data/spec/unit/knife/role_run_list_add_spec.rb +7 -7
- data/spec/unit/knife/role_run_list_clear_spec.rb +28 -34
- data/spec/unit/knife/role_run_list_remove_spec.rb +36 -42
- data/spec/unit/knife/role_run_list_replace_spec.rb +42 -45
- data/spec/unit/knife/role_run_list_set_spec.rb +6 -9
- data/spec/unit/knife/role_show_spec.rb +14 -14
- data/spec/unit/knife/ssh_spec.rb +36 -36
- data/spec/unit/knife/ssl_check_spec.rb +7 -7
- data/spec/unit/knife/ssl_fetch_spec.rb +8 -8
- data/spec/unit/knife/status_spec.rb +5 -5
- data/spec/unit/knife/tag_create_spec.rb +1 -1
- data/spec/unit/knife/tag_delete_spec.rb +1 -1
- data/spec/unit/knife/tag_list_spec.rb +2 -2
- data/spec/unit/knife/user_create_spec.rb +30 -30
- data/spec/unit/knife/user_delete_spec.rb +11 -11
- data/spec/unit/knife/user_edit_spec.rb +9 -9
- data/spec/unit/knife/user_list_spec.rb +3 -3
- data/spec/unit/knife/user_reregister_spec.rb +13 -13
- data/spec/unit/knife/user_show_spec.rb +12 -12
- data/spec/unit/knife_spec.rb +61 -61
- data/spec/unit/lib_backcompat_spec.rb +34 -0
- data/spec/unit/log/syslog_spec.rb +3 -3
- data/spec/unit/log/winevt_spec.rb +3 -3
- data/spec/unit/log_spec.rb +5 -5
- data/spec/unit/lwrp_spec.rb +41 -43
- data/spec/unit/mash_spec.rb +8 -8
- data/spec/unit/mixin/api_version_request_handling_spec.rb +13 -14
- data/spec/unit/mixin/checksum_spec.rb +5 -6
- data/spec/unit/mixin/command_spec.rb +9 -9
- data/spec/unit/mixin/convert_to_class_name_spec.rb +2 -2
- data/spec/unit/mixin/deep_merge_spec.rb +107 -107
- data/spec/unit/mixin/deprecation_spec.rb +5 -5
- data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +9 -9
- data/spec/unit/mixin/homebrew_user_spec.rb +13 -13
- data/spec/unit/mixin/params_validate_spec.rb +71 -71
- data/spec/unit/mixin/path_sanity_spec.rb +16 -16
- data/spec/unit/mixin/powershell_out_spec.rb +9 -9
- data/spec/unit/mixin/powershell_type_coercions_spec.rb +34 -23
- data/spec/unit/mixin/properties_spec.rb +27 -27
- data/spec/unit/mixin/proxified_socket_spec.rb +6 -6
- data/spec/unit/mixin/securable_spec.rb +37 -37
- data/spec/unit/mixin/shell_out_spec.rb +68 -68
- data/spec/unit/mixin/subclass_directive_spec.rb +2 -2
- data/spec/unit/mixin/template_spec.rb +15 -12
- data/spec/unit/mixin/unformatter_spec.rb +3 -3
- data/spec/unit/mixin/uris_spec.rb +8 -8
- data/spec/unit/mixin/windows_architecture_helper_spec.rb +14 -17
- data/spec/unit/mixin/xml_escape_spec.rb +3 -3
- data/spec/unit/monkey_patches/uri_spec.rb +3 -3
- data/spec/unit/monologger_spec.rb +4 -4
- data/spec/unit/node/attribute_spec.rb +203 -248
- data/spec/unit/node/immutable_collections_spec.rb +20 -21
- data/spec/unit/node_map_spec.rb +5 -5
- data/spec/unit/node_spec.rb +165 -135
- data/spec/unit/org_spec.rb +17 -17
- data/spec/unit/platform/query_helpers_spec.rb +23 -23
- data/spec/unit/platform_spec.rb +17 -17
- data/spec/unit/policy_builder/dynamic_spec.rb +8 -10
- data/spec/unit/policy_builder/expand_node_object_spec.rb +16 -14
- data/spec/unit/policy_builder/policyfile_spec.rb +30 -37
- data/spec/unit/policy_builder_spec.rb +4 -4
- data/spec/unit/property/state_spec.rb +58 -56
- data/spec/unit/property/validation_spec.rb +255 -216
- data/spec/unit/property_spec.rb +206 -129
- data/spec/unit/provider/apt_update_spec.rb +113 -0
- data/spec/unit/provider/breakpoint_spec.rb +2 -3
- data/spec/unit/provider/cookbook_file/content_spec.rb +9 -10
- data/spec/unit/provider/cookbook_file_spec.rb +11 -11
- data/spec/unit/provider/cron/unix_spec.rb +7 -7
- data/spec/unit/provider/cron_spec.rb +67 -67
- data/spec/unit/provider/deploy/revision_spec.rb +6 -7
- data/spec/unit/provider/deploy/timestamped_spec.rb +2 -2
- data/spec/unit/provider/deploy_spec.rb +24 -25
- data/spec/unit/provider/directory_spec.rb +12 -12
- data/spec/unit/provider/dsc_resource_spec.rb +29 -27
- data/spec/unit/provider/dsc_script_spec.rb +47 -48
- data/spec/unit/provider/env/windows_spec.rb +21 -21
- data/spec/unit/provider/env_spec.rb +5 -5
- data/spec/unit/provider/erl_call_spec.rb +3 -4
- data/spec/unit/provider/execute_spec.rb +5 -5
- data/spec/unit/provider/file/content_spec.rb +4 -4
- data/spec/unit/provider/file_spec.rb +8 -9
- data/spec/unit/provider/git_spec.rb +64 -65
- data/spec/unit/provider/group/dscl_spec.rb +7 -7
- data/spec/unit/provider/group/gpasswd_spec.rb +3 -3
- data/spec/unit/provider/group/groupadd_spec.rb +9 -9
- data/spec/unit/provider/group/groupmod_spec.rb +12 -12
- data/spec/unit/provider/group/pw_spec.rb +3 -3
- data/spec/unit/provider/group/usermod_spec.rb +6 -6
- data/spec/unit/provider/group/windows_spec.rb +3 -3
- data/spec/unit/provider/group_spec.rb +16 -16
- data/spec/unit/provider/http_request_spec.rb +7 -7
- data/spec/unit/provider/ifconfig/aix_spec.rb +4 -5
- data/spec/unit/provider/ifconfig/debian_spec.rb +6 -6
- data/spec/unit/provider/ifconfig/redhat_spec.rb +3 -3
- data/spec/unit/provider/ifconfig_spec.rb +5 -5
- data/spec/unit/provider/link_spec.rb +12 -12
- data/spec/unit/provider/log_spec.rb +2 -2
- data/spec/unit/provider/mdadm_spec.rb +12 -12
- data/spec/unit/provider/mount/aix_spec.rb +7 -7
- data/spec/unit/provider/mount/mount_spec.rb +20 -20
- data/spec/unit/provider/mount/solaris_spec.rb +26 -26
- data/spec/unit/provider/mount/windows_spec.rb +8 -8
- data/spec/unit/provider/mount_spec.rb +7 -8
- data/spec/unit/provider/ohai_spec.rb +13 -13
- data/spec/unit/provider/osx_profile_spec.rb +249 -0
- data/spec/unit/provider/package/aix_spec.rb +5 -5
- data/spec/unit/provider/package/apt_spec.rb +49 -49
- data/spec/unit/provider/package/chocolatey_spec.rb +504 -0
- data/spec/unit/provider/package/dpkg_spec.rb +32 -36
- data/spec/unit/provider/package/easy_install_spec.rb +11 -15
- data/spec/unit/provider/package/freebsd/pkg_spec.rb +10 -10
- data/spec/unit/provider/package/freebsd/pkgng_spec.rb +12 -19
- data/spec/unit/provider/package/freebsd/port_spec.rb +12 -19
- data/spec/unit/provider/package/homebrew_spec.rb +139 -139
- data/spec/unit/provider/package/ips_spec.rb +10 -11
- data/spec/unit/provider/package/macports_spec.rb +3 -3
- data/spec/unit/provider/package/openbsd_spec.rb +38 -38
- data/spec/unit/provider/package/pacman_spec.rb +8 -9
- data/spec/unit/provider/package/paludis_spec.rb +9 -10
- data/spec/unit/provider/package/portage_spec.rb +2 -2
- data/spec/unit/provider/package/rpm_spec.rb +7 -11
- data/spec/unit/provider/package/rubygems_spec.rb +386 -289
- data/spec/unit/provider/package/smartos_spec.rb +8 -10
- data/spec/unit/provider/package/solaris_spec.rb +4 -4
- data/spec/unit/provider/package/windows/exe_spec.rb +17 -81
- data/spec/unit/provider/package/windows/msi_spec.rb +16 -16
- data/spec/unit/provider/package/windows_spec.rb +50 -40
- data/spec/unit/provider/package/yum_spec.rb +179 -181
- data/spec/unit/provider/package/zypper_spec.rb +53 -50
- data/spec/unit/provider/package_spec.rb +104 -104
- data/spec/unit/provider/powershell_script_spec.rb +20 -20
- data/spec/unit/provider/registry_key_spec.rb +3 -3
- data/spec/unit/provider/remote_directory_spec.rb +46 -46
- data/spec/unit/provider/remote_file/cache_control_data_spec.rb +9 -10
- data/spec/unit/provider/remote_file/content_spec.rb +5 -6
- data/spec/unit/provider/remote_file/fetcher_spec.rb +3 -3
- data/spec/unit/provider/remote_file/ftp_spec.rb +3 -3
- data/spec/unit/provider/remote_file/http_spec.rb +10 -12
- data/spec/unit/provider/remote_file/local_file_spec.rb +2 -2
- data/spec/unit/provider/remote_file/network_file_spec.rb +2 -2
- data/spec/unit/provider/remote_file_spec.rb +9 -11
- data/spec/unit/provider/route_spec.rb +26 -27
- data/spec/unit/provider/ruby_block_spec.rb +4 -5
- data/spec/unit/provider/script_spec.rb +11 -11
- data/spec/unit/provider/service/aix_service_spec.rb +5 -6
- data/spec/unit/provider/service/aixinit_service_spec.rb +26 -23
- data/spec/unit/provider/service/arch_service_spec.rb +15 -15
- data/spec/unit/provider/service/debian_service_spec.rb +37 -37
- data/spec/unit/provider/service/freebsd_service_spec.rb +9 -9
- data/spec/unit/provider/service/gentoo_service_spec.rb +4 -4
- data/spec/unit/provider/service/init_service_spec.rb +9 -9
- data/spec/unit/provider/service/insserv_service_spec.rb +3 -3
- data/spec/unit/provider/service/invokercd_service_spec.rb +9 -9
- data/spec/unit/provider/service/macosx_spec.rb +26 -26
- data/spec/unit/provider/service/openbsd_service_spec.rb +26 -26
- data/spec/unit/provider/service/redhat_spec.rb +16 -16
- data/spec/unit/provider/service/simple_service_spec.rb +5 -5
- data/spec/unit/provider/service/solaris_smf_service_spec.rb +51 -51
- data/spec/unit/provider/service/systemd_service_spec.rb +4 -4
- data/spec/unit/provider/service/upstart_service_spec.rb +13 -13
- data/spec/unit/provider/service/windows_spec.rb +28 -37
- data/spec/unit/provider/service_spec.rb +2 -3
- data/spec/unit/provider/subversion_spec.rb +27 -28
- data/spec/unit/provider/template/content_spec.rb +21 -21
- data/spec/unit/provider/template_spec.rb +15 -16
- data/spec/unit/provider/user/dscl_spec.rb +36 -37
- data/spec/unit/provider/user/pw_spec.rb +12 -12
- data/spec/unit/provider/user/solaris_spec.rb +31 -31
- data/spec/unit/provider/user/useradd_spec.rb +10 -10
- data/spec/unit/provider/user/windows_spec.rb +9 -9
- data/spec/unit/provider/user_spec.rb +19 -20
- data/spec/unit/provider/whyrun_safe_ruby_block_spec.rb +3 -4
- data/spec/unit/provider_resolver_spec.rb +63 -62
- data/spec/unit/provider_spec.rb +7 -8
- data/spec/unit/pure_application_spec.rb +3 -3
- data/spec/unit/recipe_spec.rb +13 -16
- data/spec/unit/resource/apt_package_spec.rb +4 -4
- data/spec/unit/resource/apt_update_spec.rb +38 -0
- data/spec/unit/resource/bash_spec.rb +3 -3
- data/spec/unit/resource/batch_spec.rb +5 -5
- data/spec/unit/resource/breakpoint_spec.rb +3 -3
- data/spec/unit/resource/chef_gem_spec.rb +5 -9
- data/spec/unit/resource/chocolatey_package_spec.rb +67 -0
- data/spec/unit/resource/conditional_action_not_nothing_spec.rb +2 -2
- data/spec/unit/resource/conditional_spec.rb +12 -12
- data/spec/unit/resource/cookbook_file_spec.rb +23 -24
- data/spec/unit/resource/cron_spec.rb +4 -4
- data/spec/unit/resource/csh_spec.rb +3 -3
- data/spec/unit/resource/deploy_revision_spec.rb +3 -3
- data/spec/unit/resource/deploy_spec.rb +23 -24
- data/spec/unit/resource/directory_spec.rb +4 -4
- data/spec/unit/resource/dpkg_package_spec.rb +5 -5
- data/spec/unit/resource/dsc_resource_spec.rb +11 -11
- data/spec/unit/resource/dsc_script_spec.rb +15 -15
- data/spec/unit/resource/easy_install_package_spec.rb +3 -3
- data/spec/unit/resource/env_spec.rb +5 -5
- data/spec/unit/resource/erl_call_spec.rb +3 -3
- data/spec/unit/resource/execute_spec.rb +4 -4
- data/spec/unit/resource/file/verification_spec.rb +11 -11
- data/spec/unit/resource/file_spec.rb +10 -10
- data/spec/unit/resource/freebsd_package_spec.rb +6 -9
- data/spec/unit/resource/gem_package_spec.rb +4 -4
- data/spec/unit/resource/git_spec.rb +3 -3
- data/spec/unit/resource/group_spec.rb +4 -4
- data/spec/unit/resource/homebrew_package_spec.rb +13 -13
- data/spec/unit/resource/http_request_spec.rb +5 -5
- data/spec/unit/resource/ifconfig_spec.rb +9 -9
- data/spec/unit/resource/ips_package_spec.rb +4 -4
- data/spec/unit/resource/ksh_spec.rb +2 -2
- data/spec/unit/resource/link_spec.rb +6 -6
- data/spec/unit/resource/log_spec.rb +3 -3
- data/spec/unit/resource/macports_package_spec.rb +3 -3
- data/spec/unit/resource/mdadm_spec.rb +3 -3
- data/spec/unit/resource/mount_spec.rb +7 -7
- data/spec/unit/resource/ohai_spec.rb +2 -3
- data/spec/unit/resource/openbsd_package_spec.rb +5 -6
- data/spec/unit/resource/osx_profile_spec.rb +61 -0
- data/spec/unit/resource/package_spec.rb +6 -6
- data/spec/unit/resource/pacman_package_spec.rb +3 -3
- data/spec/unit/resource/perl_spec.rb +3 -3
- data/spec/unit/resource/portage_package_spec.rb +2 -2
- data/spec/unit/resource/powershell_script_spec.rb +16 -16
- data/spec/unit/resource/python_spec.rb +3 -3
- data/spec/unit/resource/registry_key_spec.rb +21 -21
- data/spec/unit/resource/remote_directory_spec.rb +3 -3
- data/spec/unit/resource/remote_file_spec.rb +15 -15
- data/spec/unit/resource/resource_notification_spec.rb +18 -18
- data/spec/unit/resource/route_spec.rb +3 -3
- data/spec/unit/resource/rpm_package_spec.rb +4 -4
- data/spec/unit/resource/ruby_block_spec.rb +4 -4
- data/spec/unit/resource/ruby_spec.rb +3 -3
- data/spec/unit/resource/scm_spec.rb +8 -8
- data/spec/unit/resource/script_spec.rb +4 -4
- data/spec/unit/resource/service_spec.rb +4 -5
- data/spec/unit/resource/smartos_package_spec.rb +3 -3
- data/spec/unit/resource/solaris_package_spec.rb +3 -3
- data/spec/unit/resource/subversion_spec.rb +5 -5
- data/spec/unit/resource/template_spec.rb +7 -8
- data/spec/unit/resource/timestamped_deploy_spec.rb +4 -4
- data/spec/unit/resource/user_spec.rb +4 -4
- data/spec/unit/resource/windows_package_spec.rb +7 -7
- data/spec/unit/resource/windows_service_spec.rb +3 -3
- data/spec/unit/resource/yum_package_spec.rb +6 -6
- data/spec/unit/resource_collection/resource_list_spec.rb +7 -7
- data/spec/unit/resource_collection/resource_set_spec.rb +9 -9
- data/spec/unit/resource_collection/stepable_iterator_spec.rb +6 -6
- data/spec/unit/resource_collection_spec.rb +8 -9
- data/spec/unit/resource_definition_spec.rb +3 -3
- data/spec/unit/resource_reporter_spec.rb +56 -64
- data/spec/unit/resource_resolver_spec.rb +5 -6
- data/spec/unit/resource_spec.rb +80 -60
- data/spec/unit/rest/auth_credentials_spec.rb +39 -71
- data/spec/unit/rest_spec.rb +96 -90
- data/spec/unit/role_spec.rb +64 -68
- data/spec/unit/run_context/child_run_context_spec.rb +23 -23
- data/spec/unit/run_context/cookbook_compiler_spec.rb +5 -7
- data/spec/unit/run_context_spec.rb +19 -19
- data/spec/unit/run_list/run_list_expansion_spec.rb +24 -24
- data/spec/unit/run_list/run_list_item_spec.rb +28 -28
- data/spec/unit/run_list/versioned_recipe_list_spec.rb +22 -23
- data/spec/unit/run_list_spec.rb +37 -41
- data/spec/unit/run_lock_spec.rb +10 -10
- data/spec/unit/run_status_spec.rb +4 -5
- data/spec/unit/runner_spec.rb +8 -8
- data/spec/unit/scan_access_control_spec.rb +4 -5
- data/spec/unit/search/query_spec.rb +50 -46
- data/spec/unit/shell/model_wrapper_spec.rb +12 -13
- data/spec/unit/shell/shell_ext_spec.rb +5 -5
- data/spec/unit/shell/shell_session_spec.rb +8 -9
- data/spec/unit/shell_out_spec.rb +1 -1
- data/spec/unit/shell_spec.rb +9 -9
- data/spec/unit/user_spec.rb +14 -15
- data/spec/unit/user_v1_spec.rb +22 -23
- data/spec/unit/util/backup_spec.rb +17 -18
- data/spec/unit/util/diff_spec.rb +6 -9
- data/spec/unit/util/dsc/configuration_generator_spec.rb +48 -48
- data/spec/unit/util/dsc/lcm_output_parser_spec.rb +22 -22
- data/spec/unit/util/dsc/local_configuration_manager_spec.rb +30 -31
- data/spec/unit/util/dsc/resource_store.rb +22 -22
- data/spec/unit/util/editor_spec.rb +65 -65
- data/spec/unit/util/file_edit_spec.rb +7 -7
- data/spec/unit/util/powershell/cmdlet_spec.rb +27 -27
- data/spec/unit/util/powershell/ps_credential_spec.rb +13 -13
- data/spec/unit/util/selinux_spec.rb +8 -9
- data/spec/unit/util/threaded_job_queue_spec.rb +2 -2
- data/spec/unit/version/platform_spec.rb +5 -6
- data/spec/unit/version_class_spec.rb +8 -9
- data/spec/unit/version_constraint/platform_spec.rb +3 -4
- data/spec/unit/version_constraint_spec.rb +19 -19
- data/spec/unit/win32/registry_spec.rb +25 -25
- data/spec/unit/windows_service_spec.rb +20 -20
- data/tasks/cbgb.rb +84 -0
- data/tasks/external_tests.rb +12 -11
- data/tasks/maintainers.rb +15 -15
- data/tasks/rspec.rb +18 -15
- metadata +250 -67
- data/lib/chef/chef_fs/file_system/acl_dir.rb +0 -63
- data/lib/chef/chef_fs/file_system/acl_entry.rb +0 -58
- data/lib/chef/chef_fs/file_system/acls_dir.rb +0 -72
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_dir.rb +0 -102
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbook_entry.rb +0 -80
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_cookbooks_dir.rb +0 -82
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb +0 -81
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb +0 -196
- data/lib/chef/chef_fs/file_system/chef_server_root_dir.rb +0 -165
- data/lib/chef/chef_fs/file_system/cookbook_dir.rb +0 -224
- data/lib/chef/chef_fs/file_system/cookbook_file.rb +0 -82
- data/lib/chef/chef_fs/file_system/cookbook_subdir.rb +0 -59
- data/lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb +0 -41
- data/lib/chef/chef_fs/file_system/cookbooks_dir.rb +0 -156
- data/lib/chef/chef_fs/file_system/data_bag_dir.rb +0 -69
- data/lib/chef/chef_fs/file_system/data_bags_dir.rb +0 -71
- data/lib/chef/chef_fs/file_system/environments_dir.rb +0 -60
- data/lib/chef/chef_fs/file_system/file_system_entry.rb +0 -115
- data/lib/chef/chef_fs/file_system/memory_dir.rb +0 -51
- data/lib/chef/chef_fs/file_system/memory_file.rb +0 -17
- data/lib/chef/chef_fs/file_system/memory_root.rb +0 -21
- data/lib/chef/chef_fs/file_system/nodes_dir.rb +0 -55
- data/lib/chef/chef_fs/file_system/org_entry.rb +0 -34
- data/lib/chef/chef_fs/file_system/organization_invites_entry.rb +0 -59
- data/lib/chef/chef_fs/file_system/organization_members_entry.rb +0 -58
- data/lib/chef/chef_fs/file_system/rest_list_dir.rb +0 -110
- data/lib/chef/chef_fs/file_system/rest_list_entry.rb +0 -185
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# Author:: Mukta Aphale (<mukta.aphale@clogeny.com>)
|
3
|
-
# Copyright:: Copyright
|
3
|
+
# Copyright:: Copyright 2013-2016, Chef Software, Inc.
|
4
4
|
# License:: Apache License, Version 2.0
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,25 +15,25 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
require
|
18
|
+
require "spec_helper"
|
19
19
|
if Chef::Platform.windows?
|
20
|
-
require
|
20
|
+
require "chef/application/windows_service"
|
21
21
|
end
|
22
22
|
|
23
23
|
describe "Chef::Application::WindowsService", :windows_only do
|
24
|
-
let(:shell_out_result) { double(
|
24
|
+
let(:shell_out_result) { double("shellout", stdout: nil, stderr: nil) }
|
25
25
|
let(:config_options) do
|
26
26
|
{
|
27
27
|
log_location: STDOUT,
|
28
28
|
config_file: "test_config_file",
|
29
|
-
log_level: :info
|
29
|
+
log_level: :info,
|
30
30
|
}
|
31
31
|
end
|
32
32
|
let(:timeout) { 7200 }
|
33
33
|
let(:shellout_options) do
|
34
34
|
{
|
35
35
|
:timeout => timeout,
|
36
|
-
:logger => Chef::Log
|
36
|
+
:logger => Chef::Log,
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
@@ -51,19 +51,19 @@ describe "Chef::Application::WindowsService", :windows_only do
|
|
51
51
|
|
52
52
|
it "passes DEFAULT_LOG_LOCATION to chef-client instead of STDOUT" do
|
53
53
|
expect(subject).to receive(:shell_out).with(
|
54
|
-
"chef-client --no-fork -c test_config_file -L #{Chef::Application::WindowsService::DEFAULT_LOG_LOCATION}",
|
55
|
-
shellout_options
|
54
|
+
"chef-client.bat --no-fork -c test_config_file -L #{Chef::Application::WindowsService::DEFAULT_LOG_LOCATION}",
|
55
|
+
shellout_options,
|
56
56
|
).and_return(shell_out_result)
|
57
57
|
subject.service_main
|
58
58
|
end
|
59
59
|
|
60
|
-
context
|
61
|
-
let(:tempfile) { Tempfile.new
|
60
|
+
context "has a log location configured" do
|
61
|
+
let(:tempfile) { Tempfile.new "log_file" }
|
62
62
|
let(:config_options) do
|
63
63
|
{
|
64
64
|
log_location: tempfile.path,
|
65
65
|
config_file: "test_config_file",
|
66
|
-
log_level: :info
|
66
|
+
log_level: :info,
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
@@ -73,32 +73,32 @@ describe "Chef::Application::WindowsService", :windows_only do
|
|
73
73
|
|
74
74
|
it "uses the configured log location" do
|
75
75
|
expect(subject).to receive(:shell_out).with(
|
76
|
-
"chef-client --no-fork -c test_config_file -L #{tempfile.path}",
|
77
|
-
shellout_options
|
76
|
+
"chef-client.bat --no-fork -c test_config_file -L #{tempfile.path}",
|
77
|
+
shellout_options,
|
78
78
|
).and_return(shell_out_result)
|
79
79
|
subject.service_main
|
80
80
|
end
|
81
81
|
|
82
|
-
context
|
82
|
+
context "configured to Event Logger" do
|
83
83
|
let(:config_options) do
|
84
84
|
{
|
85
85
|
log_location: Chef::Log::WinEvt.new,
|
86
86
|
config_file: "test_config_file",
|
87
|
-
log_level: :info
|
87
|
+
log_level: :info,
|
88
88
|
}
|
89
89
|
end
|
90
90
|
|
91
91
|
it "does not pass log location to new process" do
|
92
92
|
expect(subject).to receive(:shell_out).with(
|
93
|
-
"chef-client --no-fork -c test_config_file",
|
94
|
-
shellout_options
|
93
|
+
"chef-client.bat --no-fork -c test_config_file",
|
94
|
+
shellout_options,
|
95
95
|
).and_return(shell_out_result)
|
96
96
|
subject.service_main
|
97
97
|
end
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
context
|
101
|
+
context "configueres a watchdog timeout" do
|
102
102
|
let(:timeout) { 10 }
|
103
103
|
|
104
104
|
before do
|
@@ -107,8 +107,8 @@ describe "Chef::Application::WindowsService", :windows_only do
|
|
107
107
|
|
108
108
|
it "passes watchdog timeout to new process" do
|
109
109
|
expect(subject).to receive(:shell_out).with(
|
110
|
-
"chef-client --no-fork -c test_config_file -L #{Chef::Application::WindowsService::DEFAULT_LOG_LOCATION}",
|
111
|
-
shellout_options
|
110
|
+
"chef-client.bat --no-fork -c test_config_file -L #{Chef::Application::WindowsService::DEFAULT_LOG_LOCATION}",
|
111
|
+
shellout_options,
|
112
112
|
).and_return(shell_out_result)
|
113
113
|
subject.service_main
|
114
114
|
end
|
data/tasks/cbgb.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Thom May (tmay@chef.io)
|
3
|
+
# Author:: Nathen Harvey (nharvey@chef.io)
|
4
|
+
# Copyright:: Copyright 2015-2016, Chef Software, Inc
|
5
|
+
# License:: Apache License, Version 2.0
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
require "rake"
|
21
|
+
|
22
|
+
CBGB_SOURCE = File.join(File.dirname(__FILE__), "..", "CBGB.toml")
|
23
|
+
CBGB_TARGET = File.join(File.dirname(__FILE__), "..", "CBGB.md")
|
24
|
+
|
25
|
+
begin
|
26
|
+
require "tomlrb"
|
27
|
+
|
28
|
+
task :default => :generate
|
29
|
+
|
30
|
+
namespace :cbgb do
|
31
|
+
desc "Generate MarkDown version of CBGB file"
|
32
|
+
task :generate do
|
33
|
+
cbgb = Tomlrb.load_file CBGB_SOURCE
|
34
|
+
out = "<!-- This is a generated file. Please do not edit directly -->\n"
|
35
|
+
out << "<!-- Modify CBGB.toml file and run `rake cbgb:generate` to regenerate -->\n\n"
|
36
|
+
out << "# " + cbgb["Preamble"]["title"] + "\n\n"
|
37
|
+
out << cbgb["Preamble"]["text"] + "\n"
|
38
|
+
out << "# Board of Governors\n\n"
|
39
|
+
out << "## " + cbgb["Org"]["Lead"]["title"] + "\n\n"
|
40
|
+
out << person(cbgb["people"], cbgb["Org"]["Lead"]["person"]) + "\n\n"
|
41
|
+
out << "### " + cbgb["Org"]["Contributors"]["title"] + "\n\n"
|
42
|
+
out << cbgb(cbgb["people"], cbgb["Org"]["Contributors"]["governers"]) + "\n\n"
|
43
|
+
out << "### " + cbgb["Org"]["Corporate-Contributors"]["title"] + "\n\n"
|
44
|
+
out << cbgb(cbgb["corporations"], cbgb["Org"]["Corporate-Contributors"]["governers"]) + "\n\n"
|
45
|
+
out << "### " + cbgb["Org"]["Lieutenants"]["title"] + "\n\n"
|
46
|
+
out << cbgb(cbgb["people"], cbgb["Org"]["Lieutenants"]["governers"]) + "\n\n"
|
47
|
+
File.open(CBGB_TARGET, "w") { |fn|
|
48
|
+
fn.write out
|
49
|
+
}
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def components(list, cmp)
|
54
|
+
out = ""
|
55
|
+
cmp.each do |k, v|
|
56
|
+
out << "\n#### #{v['title'].gsub('#', '\\#')}\n"
|
57
|
+
out << cbgb(list, v["cbgb"])
|
58
|
+
end
|
59
|
+
out
|
60
|
+
end
|
61
|
+
|
62
|
+
def cbgb(list, people)
|
63
|
+
o = ""
|
64
|
+
people.each do |p|
|
65
|
+
o << person(list, p) + "\n"
|
66
|
+
end
|
67
|
+
o
|
68
|
+
end
|
69
|
+
|
70
|
+
def person(list, person)
|
71
|
+
if list[person].has_key?("GitHub")
|
72
|
+
out = "* [#{list[person]["Name"]}](https://github.com/#{list[person]["GitHub"]})"
|
73
|
+
else
|
74
|
+
out = "* #{list[person]["Name"]}"
|
75
|
+
end
|
76
|
+
if list[person].has_key?("Person")
|
77
|
+
out << " - #{list[person]["Person"]}"
|
78
|
+
end
|
79
|
+
out
|
80
|
+
end
|
81
|
+
|
82
|
+
rescue LoadError
|
83
|
+
STDERR.puts "\n*** TomlRb not available.\n\n"
|
84
|
+
end
|
data/tasks/external_tests.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "tempfile"
|
2
|
+
require "bundler"
|
3
3
|
|
4
|
-
CURRENT_GEM_NAME =
|
5
|
-
CURRENT_GEM_PATH = File.expand_path(
|
4
|
+
CURRENT_GEM_NAME = "chef"
|
5
|
+
CURRENT_GEM_PATH = File.expand_path("../..", __FILE__)
|
6
6
|
|
7
7
|
def bundle_exec_with_chef(test_gem, commands)
|
8
8
|
gem_path = Bundler.environment.specs[test_gem].first.full_gem_path
|
9
9
|
gemfile_path = File.join(gem_path, "Gemfile.#{CURRENT_GEM_NAME}-external-test")
|
10
10
|
gemfile = File.open(gemfile_path, "w")
|
11
11
|
begin
|
12
|
-
IO.read(File.join(gem_path,
|
12
|
+
IO.read(File.join(gem_path, "Gemfile")).each_line do |line|
|
13
13
|
if line =~ /^\s*gemspec/
|
14
14
|
next
|
15
15
|
elsif line =~ /^\s*gem '#{CURRENT_GEM_NAME}'|\s*gem "#{CURRENT_GEM_NAME}"/
|
@@ -26,11 +26,11 @@ def bundle_exec_with_chef(test_gem, commands)
|
|
26
26
|
gemfile.close
|
27
27
|
Dir.chdir(gem_path) do
|
28
28
|
Bundler.with_clean_env do
|
29
|
-
unless system({
|
30
|
-
raise "Error running bundle
|
29
|
+
unless system({ "BUNDLE_GEMFILE" => gemfile_path, "RUBYOPT" => nil, "GEMFILE_MOD" => nil }, "bundle update")
|
30
|
+
raise "Error running bundle update of #{gemfile_path} in #{gem_path}: #{$?.exitstatus}\nGemfile:\n#{IO.read(gemfile_path)}"
|
31
31
|
end
|
32
32
|
Array(commands).each do |command|
|
33
|
-
unless system({
|
33
|
+
unless system({ "BUNDLE_GEMFILE" => gemfile_path, "RUBYOPT" => nil, "GEMFILE_MOD" => nil }, "bundle exec #{command}")
|
34
34
|
raise "Error running bundle exec #{command} in #{gem_path} with BUNDLE_GEMFILE=#{gemfile_path}: #{$?.exitstatus}\nGemfile:\n#{IO.read(gemfile_path)}"
|
35
35
|
end
|
36
36
|
end
|
@@ -51,13 +51,14 @@ EXTERNAL_PROJECTS = {
|
|
51
51
|
"chefspec" => "rake",
|
52
52
|
"chef-rewind" => "rake spec",
|
53
53
|
"poise" => "rake spec",
|
54
|
-
"halite" => "rake spec"
|
54
|
+
"halite" => "rake spec",
|
55
|
+
"knife-windows" => "rake unit_spec",
|
55
56
|
}
|
56
57
|
|
57
|
-
task :external_specs => EXTERNAL_PROJECTS.keys.map { |g| :"#{g.sub("-","_")}_spec" }
|
58
|
+
task :external_specs => EXTERNAL_PROJECTS.keys.map { |g| :"#{g.sub("-", "_")}_spec" }
|
58
59
|
|
59
60
|
EXTERNAL_PROJECTS.each do |test_gem, commands|
|
60
|
-
task :"#{test_gem.gsub(
|
61
|
+
task :"#{test_gem.gsub("-", "_")}_spec" do
|
61
62
|
bundle_exec_with_chef(test_gem, commands)
|
62
63
|
end
|
63
64
|
end
|
data/tasks/maintainers.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Copyright:: Copyright
|
2
|
+
# Copyright:: Copyright 2015-2016, Chef Software, Inc.
|
3
3
|
# License:: Apache License, Version 2.0
|
4
4
|
#
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,7 +15,7 @@
|
|
15
15
|
# limitations under the License.
|
16
16
|
#
|
17
17
|
|
18
|
-
require
|
18
|
+
require "rake"
|
19
19
|
|
20
20
|
SOURCE = File.join(File.dirname(__FILE__), "..", "MAINTAINERS.toml")
|
21
21
|
TARGET = File.join(File.dirname(__FILE__), "..", "MAINTAINERS.md")
|
@@ -28,9 +28,9 @@ REPOSITORIES = ["chef/chef", "chef/chef-census", "chef/chef-repo",
|
|
28
28
|
"chef/mixlib-shellout", "chef/ohai", "chef/omnibus-chef"]
|
29
29
|
|
30
30
|
begin
|
31
|
-
require
|
32
|
-
require
|
33
|
-
require
|
31
|
+
require "tomlrb"
|
32
|
+
require "octokit"
|
33
|
+
require "pp"
|
34
34
|
task :default => :generate
|
35
35
|
|
36
36
|
namespace :maintainers do
|
@@ -38,7 +38,7 @@ begin
|
|
38
38
|
task :generate do
|
39
39
|
out = "<!-- This is a generated file. Please do not edit directly -->\n\n"
|
40
40
|
out << "# " + source["Preamble"]["title"] + "\n\n"
|
41
|
-
out <<
|
41
|
+
out << source["Preamble"]["text"] + "\n"
|
42
42
|
|
43
43
|
# The project lead is a special case
|
44
44
|
out << "# " + source["Org"]["Lead"]["title"] + "\n\n"
|
@@ -70,7 +70,7 @@ begin
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def teams
|
73
|
-
@teams ||= {"client-maintainers" => {"title" => "Client Maintainers"}}
|
73
|
+
@teams ||= { "client-maintainers" => { "title" => "Client Maintainers" } }
|
74
74
|
end
|
75
75
|
|
76
76
|
def add_members(team, name)
|
@@ -94,7 +94,7 @@ begin
|
|
94
94
|
# setting, so we know whether we need to update it
|
95
95
|
def get_github_teams
|
96
96
|
github.org_teams("chef").each do |team|
|
97
|
-
gh_teams[team[:slug]] = {"id" => team[:id], "privacy" => team[:privacy]}
|
97
|
+
gh_teams[team[:slug]] = { "id" => team[:id], "privacy" => team[:privacy] }
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -109,8 +109,8 @@ begin
|
|
109
109
|
def create_team(team)
|
110
110
|
puts "creating new github team: #{team} with title: #{teams[team]["title"]} "
|
111
111
|
t = github.create_team("chef", name: team, description: teams[team]["title"],
|
112
|
-
|
113
|
-
|
112
|
+
privacy: "closed", repo_names: REPOSITORIES,
|
113
|
+
accept: "application/vnd.github.ironman-preview+json")
|
114
114
|
gh_teams[team] = { "id" => t[:id], "privacy" => t[:privacy] }
|
115
115
|
end
|
116
116
|
|
@@ -121,14 +121,14 @@ begin
|
|
121
121
|
end
|
122
122
|
|
123
123
|
def prepare_teams(cmp)
|
124
|
-
%w
|
124
|
+
%w{text paths}.each { |k| cmp.delete(k) }
|
125
125
|
if cmp.key?("team")
|
126
126
|
team = cmp.delete("team")
|
127
127
|
add_members(team, cmp.delete("lieutenant")) if cmp.key?("lieutenant")
|
128
128
|
add_members(team, cmp.delete("maintainers")) if cmp.key?("maintainers")
|
129
129
|
set_team_title(team, cmp.delete("title"))
|
130
130
|
else
|
131
|
-
%w
|
131
|
+
%w{maintainers lieutenant title}.each { |k| cmp.delete(k) }
|
132
132
|
end
|
133
133
|
cmp.each { |_k, v| prepare_teams(v) }
|
134
134
|
end
|
@@ -146,14 +146,14 @@ begin
|
|
146
146
|
return if gh_teams[team]["privacy"] == "closed"
|
147
147
|
puts "Setting #{team} privacy to closed from #{gh_teams[team]["privacy"]}"
|
148
148
|
github.update_team(gh_teams[team]["id"], privacy: "closed",
|
149
|
-
|
149
|
+
accept: "application/vnd.github.ironman-preview+json")
|
150
150
|
end
|
151
151
|
|
152
152
|
def add_team_members(team, additions)
|
153
153
|
additions.each do |member|
|
154
154
|
puts "Adding #{member} to #{team}"
|
155
155
|
github.add_team_membership(gh_teams[team]["id"], member, role: "member",
|
156
|
-
|
156
|
+
accept: "application/vnd.github.ironman-preview+json")
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
@@ -188,7 +188,7 @@ begin
|
|
188
188
|
end
|
189
189
|
out << format_maintainers(cmp.delete("maintainers")) + "\n" if cmp.has_key?("maintainers")
|
190
190
|
cmp.delete("paths")
|
191
|
-
cmp.each {|k,v| out << format_components(v) }
|
191
|
+
cmp.each { |k, v| out << format_components(v) }
|
192
192
|
out
|
193
193
|
end
|
194
194
|
|
data/tasks/rspec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
|
-
# Author:: Adam Jacob (<adam@
|
3
|
-
# Author:: Daniel DeLeo (<dan@
|
4
|
-
# Copyright:: Copyright
|
2
|
+
# Author:: Adam Jacob (<adam@chef.io>)
|
3
|
+
# Author:: Daniel DeLeo (<dan@chef.io>)
|
4
|
+
# Copyright:: Copyright 2008-2016, Chef Software Inc.
|
5
5
|
# License:: Apache License, Version 2.0
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -17,14 +17,13 @@
|
|
17
17
|
# limitations under the License.
|
18
18
|
#
|
19
19
|
|
20
|
-
require
|
21
|
-
require
|
20
|
+
require "rubygems"
|
21
|
+
require "rake"
|
22
22
|
|
23
23
|
CHEF_ROOT = File.join(File.dirname(__FILE__), "..")
|
24
24
|
|
25
25
|
begin
|
26
|
-
require
|
27
|
-
|
26
|
+
require "rspec/core/rake_task"
|
28
27
|
|
29
28
|
desc "Run specs for Chef's Components"
|
30
29
|
task :component_specs do
|
@@ -42,41 +41,45 @@ begin
|
|
42
41
|
|
43
42
|
desc "Run standard specs (minus long running specs)"
|
44
43
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
44
|
+
t.rspec_opts = %w{--profile}
|
45
45
|
# right now this just limits to functional + unit, but could also remove
|
46
46
|
# individual tests marked long-running
|
47
|
-
t.pattern = FileList[
|
47
|
+
t.pattern = FileList["spec/**/*_spec.rb"]
|
48
48
|
end
|
49
49
|
|
50
50
|
namespace :spec do
|
51
51
|
desc "Run all specs in spec directory with RCov"
|
52
52
|
RSpec::Core::RakeTask.new(:rcov) do |t|
|
53
|
-
t.
|
53
|
+
t.rspec_opts = %w{--profile}
|
54
|
+
t.pattern = FileList["spec/**/*_spec.rb"]
|
54
55
|
t.rcov = true
|
55
56
|
t.rcov_opts = lambda do
|
56
|
-
IO.readlines("#{CHEF_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
57
|
+
IO.readlines("#{CHEF_ROOT}/spec/rcov.opts").map { |l| l.chomp.split " " }.flatten
|
57
58
|
end
|
58
59
|
end
|
59
60
|
|
60
61
|
desc "Run all specs in spec directory"
|
61
62
|
RSpec::Core::RakeTask.new(:all) do |t|
|
62
|
-
t.
|
63
|
+
t.rspec_opts = %w{--profile}
|
64
|
+
t.pattern = FileList["spec/**/*_spec.rb"]
|
63
65
|
end
|
64
66
|
|
65
67
|
desc "Print Specdoc for all specs"
|
66
68
|
RSpec::Core::RakeTask.new(:doc) do |t|
|
67
|
-
t.rspec_opts =
|
68
|
-
t.pattern = FileList[
|
69
|
+
t.rspec_opts = %w{--format specdoc --dry-run --profile}
|
70
|
+
t.pattern = FileList["spec/**/*_spec.rb"]
|
69
71
|
end
|
70
72
|
|
71
73
|
desc "Run the specs under spec/unit with activesupport loaded"
|
72
74
|
RSpec::Core::RakeTask.new(:activesupport) do |t|
|
73
|
-
t.rspec_opts =
|
74
|
-
t.pattern = FileList[
|
75
|
+
t.rspec_opts = %w{--require active_support/core_ext --profile}
|
76
|
+
t.pattern = FileList["spec/unit/**/*_spec.rb"]
|
75
77
|
end
|
76
78
|
|
77
79
|
[:unit, :functional, :integration, :stress].each do |sub|
|
78
80
|
desc "Run the specs under spec/#{sub}"
|
79
81
|
RSpec::Core::RakeTask.new(sub) do |t|
|
82
|
+
t.rspec_opts = %w{--profile}
|
80
83
|
t.pattern = FileList["spec/#{sub}/**/*_spec.rb"]
|
81
84
|
end
|
82
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.7.2
|
5
5
|
platform: universal-mingw32
|
6
6
|
authors:
|
7
7
|
- Adam Jacob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-config
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 12.
|
19
|
+
version: 12.7.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 12.
|
26
|
+
version: 12.7.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mixlib-cli
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.4'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mixlib-shellout
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,16 +118,22 @@ dependencies:
|
|
118
118
|
name: net-ssh
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '2.
|
123
|
+
version: '2.9'
|
124
|
+
- - "<"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '4.0'
|
124
127
|
type: :runtime
|
125
128
|
prerelease: false
|
126
129
|
version_requirements: !ruby/object:Gem::Requirement
|
127
130
|
requirements:
|
128
|
-
- - "
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '2.9'
|
134
|
+
- - "<"
|
129
135
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
136
|
+
version: '4.0'
|
131
137
|
- !ruby/object:Gem::Dependency
|
132
138
|
name: net-ssh-multi
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,34 +208,14 @@ dependencies:
|
|
202
208
|
requirements:
|
203
209
|
- - "~>"
|
204
210
|
- !ruby/object:Gem::Version
|
205
|
-
version: '4.
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 4.2.2
|
209
|
-
type: :runtime
|
210
|
-
prerelease: false
|
211
|
-
version_requirements: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '4.2'
|
216
|
-
- - ">="
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
version: 4.2.2
|
219
|
-
- !ruby/object:Gem::Dependency
|
220
|
-
name: pry
|
221
|
-
requirement: !ruby/object:Gem::Requirement
|
222
|
-
requirements:
|
223
|
-
- - "~>"
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
version: '0.9'
|
211
|
+
version: '4.5'
|
226
212
|
type: :runtime
|
227
213
|
prerelease: false
|
228
214
|
version_requirements: !ruby/object:Gem::Requirement
|
229
215
|
requirements:
|
230
216
|
- - "~>"
|
231
217
|
- !ruby/object:Gem::Version
|
232
|
-
version: '
|
218
|
+
version: '4.5'
|
233
219
|
- !ruby/object:Gem::Dependency
|
234
220
|
name: plist
|
235
221
|
requirement: !ruby/object:Gem::Requirement
|
@@ -342,6 +328,20 @@ dependencies:
|
|
342
328
|
- - "~>"
|
343
329
|
- !ruby/object:Gem::Version
|
344
330
|
version: '1.6'
|
331
|
+
- !ruby/object:Gem::Dependency
|
332
|
+
name: uuidtools
|
333
|
+
requirement: !ruby/object:Gem::Requirement
|
334
|
+
requirements:
|
335
|
+
- - "~>"
|
336
|
+
- !ruby/object:Gem::Version
|
337
|
+
version: 2.1.5
|
338
|
+
type: :runtime
|
339
|
+
prerelease: false
|
340
|
+
version_requirements: !ruby/object:Gem::Requirement
|
341
|
+
requirements:
|
342
|
+
- - "~>"
|
343
|
+
- !ruby/object:Gem::Version
|
344
|
+
version: 2.1.5
|
345
345
|
- !ruby/object:Gem::Dependency
|
346
346
|
name: proxifier
|
347
347
|
requirement: !ruby/object:Gem::Requirement
|
@@ -374,16 +374,22 @@ dependencies:
|
|
374
374
|
name: cheffish
|
375
375
|
requirement: !ruby/object:Gem::Requirement
|
376
376
|
requirements:
|
377
|
-
- - "
|
377
|
+
- - ">="
|
378
378
|
- !ruby/object:Gem::Version
|
379
379
|
version: '1.1'
|
380
|
+
- - "<"
|
381
|
+
- !ruby/object:Gem::Version
|
382
|
+
version: '3.0'
|
380
383
|
type: :development
|
381
384
|
prerelease: false
|
382
385
|
version_requirements: !ruby/object:Gem::Requirement
|
383
386
|
requirements:
|
384
|
-
- - "
|
387
|
+
- - ">="
|
385
388
|
- !ruby/object:Gem::Version
|
386
389
|
version: '1.1'
|
390
|
+
- - "<"
|
391
|
+
- !ruby/object:Gem::Version
|
392
|
+
version: '3.0'
|
387
393
|
- !ruby/object:Gem::Dependency
|
388
394
|
name: rake
|
389
395
|
requirement: !ruby/object:Gem::Requirement
|
@@ -575,6 +581,144 @@ files:
|
|
575
581
|
- LICENSE
|
576
582
|
- README.md
|
577
583
|
- Rakefile
|
584
|
+
- VERSION
|
585
|
+
- acceptance/.gitignore
|
586
|
+
- acceptance/.shared/kitchen_acceptance/.kitchen.digitalocean.yml
|
587
|
+
- acceptance/.shared/kitchen_acceptance/.kitchen.ec2.yml
|
588
|
+
- acceptance/.shared/kitchen_acceptance/.kitchen.vagrant.yml
|
589
|
+
- acceptance/.shared/kitchen_acceptance/libraries/kitchen.rb
|
590
|
+
- acceptance/.shared/kitchen_acceptance/metadata.rb
|
591
|
+
- acceptance/Gemfile
|
592
|
+
- acceptance/README.md
|
593
|
+
- acceptance/basics/.acceptance/acceptance-cookbook/.gitignore
|
594
|
+
- acceptance/basics/.acceptance/acceptance-cookbook/metadata.rb
|
595
|
+
- acceptance/basics/.acceptance/acceptance-cookbook/recipes/destroy.rb
|
596
|
+
- acceptance/basics/.acceptance/acceptance-cookbook/recipes/provision.rb
|
597
|
+
- acceptance/basics/.acceptance/acceptance-cookbook/recipes/verify.rb
|
598
|
+
- acceptance/basics/.kitchen.yml
|
599
|
+
- acceptance/basics/test/integration/chef-current-install/serverspec/chef_client_spec.rb
|
600
|
+
- acceptance/basics/test/integration/chef-current-install/serverspec/spec_helper.rb
|
601
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore
|
602
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb
|
603
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb
|
604
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb
|
605
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb
|
606
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb
|
607
|
+
- acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb
|
608
|
+
- acceptance/top-cookbooks/.gitignore
|
609
|
+
- acceptance/top-cookbooks/.kitchen.git.yml
|
610
|
+
- acceptance/top-cookbooks/.kitchen.learn-the-basics-rhel.yml
|
611
|
+
- acceptance/top-cookbooks/.kitchen.learn-the-basics-ubuntu.yml
|
612
|
+
- acceptance/top-cookbooks/.kitchen.learn-the-basics-windows.yml
|
613
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.chef-repo.txt
|
614
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/HEAD
|
615
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/config
|
616
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/description
|
617
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/applypatch-msg.sample
|
618
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/commit-msg.sample
|
619
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/post-update.sample
|
620
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/pre-applypatch.sample
|
621
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/pre-commit.sample
|
622
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/pre-push.sample
|
623
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/pre-rebase.sample
|
624
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/prepare-commit-msg.sample
|
625
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/hooks/update.sample
|
626
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/index
|
627
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/info/exclude
|
628
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/logs/HEAD
|
629
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/logs/refs/heads/deploy
|
630
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/logs/refs/heads/master
|
631
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/logs/refs/remotes/origin/HEAD
|
632
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/objects/pack/pack-da6e5ed061979ac3295ca2d3ad1f58f242f0d81f.idx
|
633
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/objects/pack/pack-da6e5ed061979ac3295ca2d3ad1f58f242f0d81f.pack
|
634
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/packed-refs
|
635
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/refs/heads/deploy
|
636
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/refs/heads/master
|
637
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.git/refs/remotes/origin/HEAD
|
638
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/.gitignore
|
639
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/LICENSE
|
640
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/README.md
|
641
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/chefignore
|
642
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/.gitignore
|
643
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/.kitchen.yml
|
644
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/Berksfile
|
645
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/README.md
|
646
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/attributes/default.rb
|
647
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/chefignore
|
648
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/metadata.rb
|
649
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/recipes/default.rb
|
650
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/recipes/lesson1.rb
|
651
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/recipes/lesson2.rb
|
652
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/recipes/lesson3.rb
|
653
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/recipes/setup.rb
|
654
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/spec/spec_helper.rb
|
655
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/spec/unit/recipes/default_spec.rb
|
656
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/test/integration/default/serverspec/default_spec.rb
|
657
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-rhel/test/integration/helpers/serverspec/spec_helper.rb
|
658
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/.gitignore
|
659
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/.kitchen.yml
|
660
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/Berksfile
|
661
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/README.md
|
662
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/chefignore
|
663
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/metadata.rb
|
664
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/recipes/default.rb
|
665
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/recipes/lesson1.rb
|
666
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/recipes/lesson2.rb
|
667
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/recipes/lesson3.rb
|
668
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/recipes/setup.rb
|
669
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/spec/spec_helper.rb
|
670
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/spec/unit/recipes/default_spec.rb
|
671
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/test/integration/default/serverspec/default_spec.rb
|
672
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-ubuntu/test/integration/helpers/serverspec/spec_helper.rb
|
673
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/.gitignore
|
674
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/.kitchen.yml
|
675
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/.kitchen/learn-the-basics-windows-default-windows-2012r2.yml
|
676
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/.kitchen/logs/kitchen.log
|
677
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/.kitchen/logs/learn-the-basics-windows-default-windows-2012r2.log
|
678
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/Berksfile
|
679
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/README.md
|
680
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/attributes/default.rb
|
681
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/chefignore
|
682
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/metadata.rb
|
683
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/default.rb
|
684
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/lesson1.rb
|
685
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/lesson2.rb
|
686
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/lesson3.rb
|
687
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/recipes/setup.rb
|
688
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/spec/spec_helper.rb
|
689
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/spec/unit/recipes/default_spec.rb
|
690
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/test/integration/default/serverspec/default_spec.rb
|
691
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/learn-the-basics-windows/test/integration/helpers/serverspec/spec_helper.rb
|
692
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/.gitignore
|
693
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/.kitchen.yml
|
694
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/Berksfile
|
695
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/README.md
|
696
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/chefignore
|
697
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/cache_helpers.rb
|
698
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/string_helpers.rb
|
699
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/libraries/task_helpers.rb
|
700
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/metadata.rb
|
701
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/recipes/default.rb
|
702
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/resources/task.rb
|
703
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/resources/task_options.rb
|
704
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/spec/spec_helper.rb
|
705
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/spec/unit/recipes/default_spec.rb
|
706
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/test/integration/default/serverspec/default_spec.rb
|
707
|
+
- acceptance/top-cookbooks/test_run/learn-the-basics-windows/cookbooks/workflow/test/integration/helpers/serverspec/spec_helper.rb
|
708
|
+
- acceptance/trivial/.acceptance/acceptance-cookbook/.gitignore
|
709
|
+
- acceptance/trivial/.acceptance/acceptance-cookbook/metadata.rb
|
710
|
+
- acceptance/trivial/.acceptance/acceptance-cookbook/recipes/destroy.rb
|
711
|
+
- acceptance/trivial/.acceptance/acceptance-cookbook/recipes/provision.rb
|
712
|
+
- acceptance/trivial/.acceptance/acceptance-cookbook/recipes/verify.rb
|
713
|
+
- acceptance/trivial/.kitchen.yml
|
714
|
+
- acceptance/trivial/test/integration/chef-current-install/inspec/chef_client_spec.rb
|
715
|
+
- acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore
|
716
|
+
- acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb
|
717
|
+
- acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb
|
718
|
+
- acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb
|
719
|
+
- acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb
|
720
|
+
- acceptance/windows-service/.kitchen.yml
|
721
|
+
- acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb
|
578
722
|
- bin/chef-apply
|
579
723
|
- bin/chef-client
|
580
724
|
- bin/chef-service-manager
|
@@ -750,6 +894,9 @@ files:
|
|
750
894
|
- distro/powershell/chef/chef.psm1
|
751
895
|
- ext/win32-eventlog/Rakefile
|
752
896
|
- ext/win32-eventlog/chef-log.man
|
897
|
+
- lib-backcompat/chef/chef_fs/file_system/acl_entry.rb
|
898
|
+
- lib-backcompat/chef/chef_fs/file_system/chef_repository_file_system_root_dir.rb
|
899
|
+
- lib-backcompat/chef/chef_fs/file_system/chef_server_root_dir.rb
|
753
900
|
- lib/chef.rb
|
754
901
|
- lib/chef/api_client.rb
|
755
902
|
- lib/chef/api_client/registration.rb
|
@@ -786,53 +933,67 @@ files:
|
|
786
933
|
- lib/chef/chef_fs/data_handler/organization_invites_data_handler.rb
|
787
934
|
- lib/chef/chef_fs/data_handler/organization_members_data_handler.rb
|
788
935
|
- lib/chef/chef_fs/data_handler/policy_data_handler.rb
|
936
|
+
- lib/chef/chef_fs/data_handler/policy_group_data_handler.rb
|
789
937
|
- lib/chef/chef_fs/data_handler/role_data_handler.rb
|
790
938
|
- lib/chef/chef_fs/data_handler/user_data_handler.rb
|
791
939
|
- lib/chef/chef_fs/file_pattern.rb
|
792
940
|
- lib/chef/chef_fs/file_system.rb
|
793
|
-
- lib/chef/chef_fs/file_system/acl_dir.rb
|
794
|
-
- lib/chef/chef_fs/file_system/acl_entry.rb
|
795
|
-
- lib/chef/chef_fs/file_system/acls_dir.rb
|
796
941
|
- lib/chef/chef_fs/file_system/already_exists_error.rb
|
797
942
|
- lib/chef/chef_fs/file_system/base_fs_dir.rb
|
798
943
|
- lib/chef/chef_fs/file_system/base_fs_object.rb
|
799
|
-
- lib/chef/chef_fs/file_system/
|
800
|
-
- lib/chef/chef_fs/file_system/
|
801
|
-
- lib/chef/chef_fs/file_system/
|
802
|
-
- lib/chef/chef_fs/file_system/
|
803
|
-
- lib/chef/chef_fs/file_system/
|
804
|
-
- lib/chef/chef_fs/file_system/
|
805
|
-
- lib/chef/chef_fs/file_system/
|
806
|
-
- lib/chef/chef_fs/file_system/
|
807
|
-
- lib/chef/chef_fs/file_system/
|
808
|
-
- lib/chef/chef_fs/file_system/
|
809
|
-
- lib/chef/chef_fs/file_system/
|
944
|
+
- lib/chef/chef_fs/file_system/chef_server/acl_dir.rb
|
945
|
+
- lib/chef/chef_fs/file_system/chef_server/acl_entry.rb
|
946
|
+
- lib/chef/chef_fs/file_system/chef_server/acls_dir.rb
|
947
|
+
- lib/chef/chef_fs/file_system/chef_server/chef_server_root_dir.rb
|
948
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbook_artifact_dir.rb
|
949
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbook_artifacts_dir.rb
|
950
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbook_dir.rb
|
951
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbook_file.rb
|
952
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbook_subdir.rb
|
953
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbooks_acl_dir.rb
|
954
|
+
- lib/chef/chef_fs/file_system/chef_server/cookbooks_dir.rb
|
955
|
+
- lib/chef/chef_fs/file_system/chef_server/data_bag_dir.rb
|
956
|
+
- lib/chef/chef_fs/file_system/chef_server/data_bags_dir.rb
|
957
|
+
- lib/chef/chef_fs/file_system/chef_server/environments_dir.rb
|
958
|
+
- lib/chef/chef_fs/file_system/chef_server/nodes_dir.rb
|
959
|
+
- lib/chef/chef_fs/file_system/chef_server/org_entry.rb
|
960
|
+
- lib/chef/chef_fs/file_system/chef_server/organization_invites_entry.rb
|
961
|
+
- lib/chef/chef_fs/file_system/chef_server/organization_members_entry.rb
|
962
|
+
- lib/chef/chef_fs/file_system/chef_server/policies_acl_dir.rb
|
963
|
+
- lib/chef/chef_fs/file_system/chef_server/policies_dir.rb
|
964
|
+
- lib/chef/chef_fs/file_system/chef_server/policy_group_entry.rb
|
965
|
+
- lib/chef/chef_fs/file_system/chef_server/policy_groups_dir.rb
|
966
|
+
- lib/chef/chef_fs/file_system/chef_server/policy_revision_entry.rb
|
967
|
+
- lib/chef/chef_fs/file_system/chef_server/rest_list_dir.rb
|
968
|
+
- lib/chef/chef_fs/file_system/chef_server/rest_list_entry.rb
|
969
|
+
- lib/chef/chef_fs/file_system/chef_server/versioned_cookbook_dir.rb
|
970
|
+
- lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb
|
810
971
|
- lib/chef/chef_fs/file_system/cookbook_frozen_error.rb
|
811
|
-
- lib/chef/chef_fs/file_system/cookbook_subdir.rb
|
812
|
-
- lib/chef/chef_fs/file_system/cookbooks_acl_dir.rb
|
813
|
-
- lib/chef/chef_fs/file_system/cookbooks_dir.rb
|
814
|
-
- lib/chef/chef_fs/file_system/data_bag_dir.rb
|
815
|
-
- lib/chef/chef_fs/file_system/data_bags_dir.rb
|
816
972
|
- lib/chef/chef_fs/file_system/default_environment_cannot_be_modified_error.rb
|
817
|
-
- lib/chef/chef_fs/file_system/environments_dir.rb
|
818
|
-
- lib/chef/chef_fs/file_system/file_system_entry.rb
|
819
973
|
- lib/chef/chef_fs/file_system/file_system_error.rb
|
820
|
-
- lib/chef/chef_fs/file_system/
|
821
|
-
- lib/chef/chef_fs/file_system/
|
822
|
-
- lib/chef/chef_fs/file_system/
|
823
|
-
- lib/chef/chef_fs/file_system/memory_root.rb
|
974
|
+
- lib/chef/chef_fs/file_system/memory/memory_dir.rb
|
975
|
+
- lib/chef/chef_fs/file_system/memory/memory_file.rb
|
976
|
+
- lib/chef/chef_fs/file_system/memory/memory_root.rb
|
824
977
|
- lib/chef/chef_fs/file_system/multiplexed_dir.rb
|
825
978
|
- lib/chef/chef_fs/file_system/must_delete_recursively_error.rb
|
826
|
-
- lib/chef/chef_fs/file_system/nodes_dir.rb
|
827
979
|
- lib/chef/chef_fs/file_system/nonexistent_fs_object.rb
|
828
980
|
- lib/chef/chef_fs/file_system/not_found_error.rb
|
829
981
|
- lib/chef/chef_fs/file_system/operation_failed_error.rb
|
830
982
|
- lib/chef/chef_fs/file_system/operation_not_allowed_error.rb
|
831
|
-
- lib/chef/chef_fs/file_system/
|
832
|
-
- lib/chef/chef_fs/file_system/
|
833
|
-
- lib/chef/chef_fs/file_system/
|
834
|
-
- lib/chef/chef_fs/file_system/
|
835
|
-
- lib/chef/chef_fs/file_system/
|
983
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_acls_dir.rb
|
984
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_artifact_dir.rb
|
985
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_artifacts_dir.rb
|
986
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_dir.rb
|
987
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbook_entry.rb
|
988
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_cookbooks_dir.rb
|
989
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_data_bags_dir.rb
|
990
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_entry.rb
|
991
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_policies_dir.rb
|
992
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_root_dir.rb
|
993
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_versioned_cookbook_dir.rb
|
994
|
+
- lib/chef/chef_fs/file_system/repository/chef_repository_file_system_versioned_cookbooks_dir.rb
|
995
|
+
- lib/chef/chef_fs/file_system/repository/file_system_entry.rb
|
996
|
+
- lib/chef/chef_fs/file_system/repository/file_system_root_dir.rb
|
836
997
|
- lib/chef/chef_fs/knife.rb
|
837
998
|
- lib/chef/chef_fs/parallelizer.rb
|
838
999
|
- lib/chef/chef_fs/parallelizer/flatten_enumerable.rb
|
@@ -946,6 +1107,7 @@ files:
|
|
946
1107
|
- lib/chef/http/json_to_model_output.rb
|
947
1108
|
- lib/chef/http/remote_request_id.rb
|
948
1109
|
- lib/chef/http/simple.rb
|
1110
|
+
- lib/chef/http/simple_json.rb
|
949
1111
|
- lib/chef/http/socketless_chef_zero_client.rb
|
950
1112
|
- lib/chef/http/ssl_policies.rb
|
951
1113
|
- lib/chef/http/validate_content_length.rb
|
@@ -1169,6 +1331,7 @@ files:
|
|
1169
1331
|
- lib/chef/policy_builder/policyfile.rb
|
1170
1332
|
- lib/chef/property.rb
|
1171
1333
|
- lib/chef/provider.rb
|
1334
|
+
- lib/chef/provider/apt_update.rb
|
1172
1335
|
- lib/chef/provider/batch.rb
|
1173
1336
|
- lib/chef/provider/breakpoint.rb
|
1174
1337
|
- lib/chef/provider/cookbook_file.rb
|
@@ -1215,9 +1378,11 @@ files:
|
|
1215
1378
|
- lib/chef/provider/mount/solaris.rb
|
1216
1379
|
- lib/chef/provider/mount/windows.rb
|
1217
1380
|
- lib/chef/provider/ohai.rb
|
1381
|
+
- lib/chef/provider/osx_profile.rb
|
1218
1382
|
- lib/chef/provider/package.rb
|
1219
1383
|
- lib/chef/provider/package/aix.rb
|
1220
1384
|
- lib/chef/provider/package/apt.rb
|
1385
|
+
- lib/chef/provider/package/chocolatey.rb
|
1221
1386
|
- lib/chef/provider/package/dpkg.rb
|
1222
1387
|
- lib/chef/provider/package/easy_install.rb
|
1223
1388
|
- lib/chef/provider/package/freebsd/base.rb
|
@@ -1297,11 +1462,13 @@ files:
|
|
1297
1462
|
- lib/chef/resource.rb
|
1298
1463
|
- lib/chef/resource/action_class.rb
|
1299
1464
|
- lib/chef/resource/apt_package.rb
|
1465
|
+
- lib/chef/resource/apt_update.rb
|
1300
1466
|
- lib/chef/resource/bash.rb
|
1301
1467
|
- lib/chef/resource/batch.rb
|
1302
1468
|
- lib/chef/resource/bff_package.rb
|
1303
1469
|
- lib/chef/resource/breakpoint.rb
|
1304
1470
|
- lib/chef/resource/chef_gem.rb
|
1471
|
+
- lib/chef/resource/chocolatey_package.rb
|
1305
1472
|
- lib/chef/resource/conditional.rb
|
1306
1473
|
- lib/chef/resource/conditional_action_not_nothing.rb
|
1307
1474
|
- lib/chef/resource/cookbook_file.rb
|
@@ -1337,6 +1504,7 @@ files:
|
|
1337
1504
|
- lib/chef/resource/mount.rb
|
1338
1505
|
- lib/chef/resource/ohai.rb
|
1339
1506
|
- lib/chef/resource/openbsd_package.rb
|
1507
|
+
- lib/chef/resource/osx_profile.rb
|
1340
1508
|
- lib/chef/resource/package.rb
|
1341
1509
|
- lib/chef/resource/pacman_package.rb
|
1342
1510
|
- lib/chef/resource/paludis_package.rb
|
@@ -1397,7 +1565,6 @@ files:
|
|
1397
1565
|
- lib/chef/shell.rb
|
1398
1566
|
- lib/chef/shell/ext.rb
|
1399
1567
|
- lib/chef/shell/model_wrapper.rb
|
1400
|
-
- lib/chef/shell/shell_rest.rb
|
1401
1568
|
- lib/chef/shell/shell_session.rb
|
1402
1569
|
- lib/chef/shell_out.rb
|
1403
1570
|
- lib/chef/tasks/chef_repo.rake
|
@@ -1613,6 +1780,7 @@ files:
|
|
1613
1780
|
- spec/data/cookbooks/preseed/metadata.rb
|
1614
1781
|
- spec/data/cookbooks/preseed/templates/default/preseed-template-variables.seed
|
1615
1782
|
- spec/data/cookbooks/preseed/templates/default/preseed-template.seed
|
1783
|
+
- spec/data/cookbooks/supports-platform-constraints/metadata.rb
|
1616
1784
|
- spec/data/definitions/test.rb
|
1617
1785
|
- spec/data/dsc_lcm.pfx
|
1618
1786
|
- spec/data/environment-config.rb
|
@@ -1770,6 +1938,10 @@ files:
|
|
1770
1938
|
- spec/functional/assets/PkgA.1.0.0.0.bff
|
1771
1939
|
- spec/functional/assets/PkgA.2.0.0.0.bff
|
1772
1940
|
- spec/functional/assets/chefinittest
|
1941
|
+
- spec/functional/assets/chocolatey_feed/test-A.1.0.nupkg
|
1942
|
+
- spec/functional/assets/chocolatey_feed/test-A.1.5.nupkg
|
1943
|
+
- spec/functional/assets/chocolatey_feed/test-A.2.0.nupkg
|
1944
|
+
- spec/functional/assets/chocolatey_feed/test-B.1.0.nupkg
|
1773
1945
|
- spec/functional/assets/dummy-1-0.aix6.1.noarch.rpm
|
1774
1946
|
- spec/functional/assets/dummy-2-0.aix6.1.noarch.rpm
|
1775
1947
|
- spec/functional/assets/mytest-1.0-1.noarch.rpm
|
@@ -1799,6 +1971,7 @@ files:
|
|
1799
1971
|
- spec/functional/resource/bash_spec.rb
|
1800
1972
|
- spec/functional/resource/batch_spec.rb
|
1801
1973
|
- spec/functional/resource/bff_spec.rb
|
1974
|
+
- spec/functional/resource/chocolatey_package_spec.rb
|
1802
1975
|
- spec/functional/resource/cookbook_file_spec.rb
|
1803
1976
|
- spec/functional/resource/cron_spec.rb
|
1804
1977
|
- spec/functional/resource/deploy_revision_spec.rb
|
@@ -2049,6 +2222,7 @@ files:
|
|
2049
2222
|
- spec/unit/knife/core/custom_manifest_loader_spec.rb
|
2050
2223
|
- spec/unit/knife/core/gem_glob_loader_spec.rb
|
2051
2224
|
- spec/unit/knife/core/hashed_command_loader_spec.rb
|
2225
|
+
- spec/unit/knife/core/node_editor_spec.rb
|
2052
2226
|
- spec/unit/knife/core/object_loader_spec.rb
|
2053
2227
|
- spec/unit/knife/core/subcommand_loader_spec.rb
|
2054
2228
|
- spec/unit/knife/core/ui_spec.rb
|
@@ -2120,6 +2294,7 @@ files:
|
|
2120
2294
|
- spec/unit/knife/user_reregister_spec.rb
|
2121
2295
|
- spec/unit/knife/user_show_spec.rb
|
2122
2296
|
- spec/unit/knife_spec.rb
|
2297
|
+
- spec/unit/lib_backcompat_spec.rb
|
2123
2298
|
- spec/unit/log/syslog_spec.rb
|
2124
2299
|
- spec/unit/log/winevt_spec.rb
|
2125
2300
|
- spec/unit/log_spec.rb
|
@@ -2163,6 +2338,7 @@ files:
|
|
2163
2338
|
- spec/unit/property/state_spec.rb
|
2164
2339
|
- spec/unit/property/validation_spec.rb
|
2165
2340
|
- spec/unit/property_spec.rb
|
2341
|
+
- spec/unit/provider/apt_update_spec.rb
|
2166
2342
|
- spec/unit/provider/breakpoint_spec.rb
|
2167
2343
|
- spec/unit/provider/cookbook_file/content_spec.rb
|
2168
2344
|
- spec/unit/provider/cookbook_file_spec.rb
|
@@ -2203,8 +2379,10 @@ files:
|
|
2203
2379
|
- spec/unit/provider/mount/windows_spec.rb
|
2204
2380
|
- spec/unit/provider/mount_spec.rb
|
2205
2381
|
- spec/unit/provider/ohai_spec.rb
|
2382
|
+
- spec/unit/provider/osx_profile_spec.rb
|
2206
2383
|
- spec/unit/provider/package/aix_spec.rb
|
2207
2384
|
- spec/unit/provider/package/apt_spec.rb
|
2385
|
+
- spec/unit/provider/package/chocolatey_spec.rb
|
2208
2386
|
- spec/unit/provider/package/dpkg_spec.rb
|
2209
2387
|
- spec/unit/provider/package/easy_install_spec.rb
|
2210
2388
|
- spec/unit/provider/package/freebsd/pkg_spec.rb
|
@@ -2274,10 +2452,12 @@ files:
|
|
2274
2452
|
- spec/unit/pure_application_spec.rb
|
2275
2453
|
- spec/unit/recipe_spec.rb
|
2276
2454
|
- spec/unit/resource/apt_package_spec.rb
|
2455
|
+
- spec/unit/resource/apt_update_spec.rb
|
2277
2456
|
- spec/unit/resource/bash_spec.rb
|
2278
2457
|
- spec/unit/resource/batch_spec.rb
|
2279
2458
|
- spec/unit/resource/breakpoint_spec.rb
|
2280
2459
|
- spec/unit/resource/chef_gem_spec.rb
|
2460
|
+
- spec/unit/resource/chocolatey_package_spec.rb
|
2281
2461
|
- spec/unit/resource/conditional_action_not_nothing_spec.rb
|
2282
2462
|
- spec/unit/resource/conditional_spec.rb
|
2283
2463
|
- spec/unit/resource/cookbook_file_spec.rb
|
@@ -2311,6 +2491,7 @@ files:
|
|
2311
2491
|
- spec/unit/resource/mount_spec.rb
|
2312
2492
|
- spec/unit/resource/ohai_spec.rb
|
2313
2493
|
- spec/unit/resource/openbsd_package_spec.rb
|
2494
|
+
- spec/unit/resource/osx_profile_spec.rb
|
2314
2495
|
- spec/unit/resource/package_spec.rb
|
2315
2496
|
- spec/unit/resource/pacman_package_spec.rb
|
2316
2497
|
- spec/unit/resource/perl_spec.rb
|
@@ -2386,6 +2567,7 @@ files:
|
|
2386
2567
|
- spec/unit/version_constraint_spec.rb
|
2387
2568
|
- spec/unit/win32/registry_spec.rb
|
2388
2569
|
- spec/unit/windows_service_spec.rb
|
2570
|
+
- tasks/cbgb.rb
|
2389
2571
|
- tasks/external_tests.rb
|
2390
2572
|
- tasks/maintainers.rb
|
2391
2573
|
- tasks/rspec.rb
|
@@ -2397,6 +2579,7 @@ post_install_message:
|
|
2397
2579
|
rdoc_options: []
|
2398
2580
|
require_paths:
|
2399
2581
|
- lib
|
2582
|
+
- lib-backcompat
|
2400
2583
|
required_ruby_version: !ruby/object:Gem::Requirement
|
2401
2584
|
requirements:
|
2402
2585
|
- - ">="
|
@@ -2409,7 +2592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2409
2592
|
version: '0'
|
2410
2593
|
requirements: []
|
2411
2594
|
rubyforge_project:
|
2412
|
-
rubygems_version: 2.4.
|
2595
|
+
rubygems_version: 2.4.7
|
2413
2596
|
signing_key:
|
2414
2597
|
specification_version: 4
|
2415
2598
|
summary: A systems integration framework, built to bring the benefits of configuration
|