chef-cli 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +32 -0
- data/LICENSE +201 -0
- data/Rakefile +70 -0
- data/bin/chef +25 -0
- data/chef-cli.gemspec +53 -0
- data/lib/chef-cli.rb +19 -0
- data/lib/chef-cli/authenticated_http.rb +22 -0
- data/lib/chef-cli/builtin_commands.rb +62 -0
- data/lib/chef-cli/chef_runner.rb +114 -0
- data/lib/chef-cli/chef_server_api_multi.rb +73 -0
- data/lib/chef-cli/cli.rb +206 -0
- data/lib/chef-cli/command/base.rb +89 -0
- data/lib/chef-cli/command/clean_policy_cookbooks.rb +115 -0
- data/lib/chef-cli/command/clean_policy_revisions.rb +112 -0
- data/lib/chef-cli/command/delete_policy.rb +121 -0
- data/lib/chef-cli/command/delete_policy_group.rb +121 -0
- data/lib/chef-cli/command/describe_cookbook.rb +98 -0
- data/lib/chef-cli/command/diff.rb +316 -0
- data/lib/chef-cli/command/env.rb +99 -0
- data/lib/chef-cli/command/exec.rb +45 -0
- data/lib/chef-cli/command/export.rb +156 -0
- data/lib/chef-cli/command/gem.rb +48 -0
- data/lib/chef-cli/command/generate.rb +123 -0
- data/lib/chef-cli/command/generator_commands.rb +83 -0
- data/lib/chef-cli/command/generator_commands/attribute.rb +37 -0
- data/lib/chef-cli/command/generator_commands/base.rb +157 -0
- data/lib/chef-cli/command/generator_commands/build_cookbook.rb +126 -0
- data/lib/chef-cli/command/generator_commands/chef_exts/generator_desc_resource.rb +40 -0
- data/lib/chef-cli/command/generator_commands/chef_exts/quieter_doc_formatter.rb +38 -0
- data/lib/chef-cli/command/generator_commands/chef_exts/recipe_dsl_ext.rb +39 -0
- data/lib/chef-cli/command/generator_commands/cookbook.rb +251 -0
- data/lib/chef-cli/command/generator_commands/cookbook_code_file.rb +100 -0
- data/lib/chef-cli/command/generator_commands/cookbook_file.rb +46 -0
- data/lib/chef-cli/command/generator_commands/generator_generator.rb +175 -0
- data/lib/chef-cli/command/generator_commands/helpers.rb +37 -0
- data/lib/chef-cli/command/generator_commands/policyfile.rb +125 -0
- data/lib/chef-cli/command/generator_commands/recipe.rb +37 -0
- data/lib/chef-cli/command/generator_commands/repo.rb +140 -0
- data/lib/chef-cli/command/generator_commands/resource.rb +37 -0
- data/lib/chef-cli/command/generator_commands/template.rb +47 -0
- data/lib/chef-cli/command/install.rb +121 -0
- data/lib/chef-cli/command/provision.rb +38 -0
- data/lib/chef-cli/command/push.rb +118 -0
- data/lib/chef-cli/command/push_archive.rb +126 -0
- data/lib/chef-cli/command/shell_init.rb +185 -0
- data/lib/chef-cli/command/show_policy.rb +164 -0
- data/lib/chef-cli/command/undelete.rb +155 -0
- data/lib/chef-cli/command/update.rb +140 -0
- data/lib/chef-cli/command/verify.rb +548 -0
- data/lib/chef-cli/commands_map.rb +113 -0
- data/lib/chef-cli/completions/bash.sh.erb +5 -0
- data/lib/chef-cli/completions/chef.fish.erb +10 -0
- data/lib/chef-cli/completions/zsh.zsh.erb +21 -0
- data/lib/chef-cli/component_test.rb +226 -0
- data/lib/chef-cli/configurable.rb +88 -0
- data/lib/chef-cli/cookbook_metadata.rb +45 -0
- data/lib/chef-cli/cookbook_omnifetch.rb +32 -0
- data/lib/chef-cli/cookbook_profiler/git.rb +152 -0
- data/lib/chef-cli/cookbook_profiler/identifiers.rb +72 -0
- data/lib/chef-cli/cookbook_profiler/null_scm.rb +31 -0
- data/lib/chef-cli/dist.rb +31 -0
- data/lib/chef-cli/exceptions.rb +153 -0
- data/lib/chef-cli/generator.rb +165 -0
- data/lib/chef-cli/helpers.rb +170 -0
- data/lib/chef-cli/pager.rb +104 -0
- data/lib/chef-cli/policyfile/artifactory_cookbook_source.rb +102 -0
- data/lib/chef-cli/policyfile/attribute_merge_checker.rb +110 -0
- data/lib/chef-cli/policyfile/chef_repo_cookbook_source.rb +138 -0
- data/lib/chef-cli/policyfile/chef_server_cookbook_source.rb +99 -0
- data/lib/chef-cli/policyfile/chef_server_lock_fetcher.rb +167 -0
- data/lib/chef-cli/policyfile/community_cookbook_source.rb +95 -0
- data/lib/chef-cli/policyfile/comparison_base.rb +123 -0
- data/lib/chef-cli/policyfile/cookbook_location_specification.rb +154 -0
- data/lib/chef-cli/policyfile/cookbook_locks.rb +466 -0
- data/lib/chef-cli/policyfile/cookbook_sources.rb +23 -0
- data/lib/chef-cli/policyfile/delivery_supermarket_source.rb +89 -0
- data/lib/chef-cli/policyfile/differ.rb +263 -0
- data/lib/chef-cli/policyfile/dsl.rb +288 -0
- data/lib/chef-cli/policyfile/git_lock_fetcher.rb +265 -0
- data/lib/chef-cli/policyfile/included_policies_cookbook_source.rb +156 -0
- data/lib/chef-cli/policyfile/lister.rb +229 -0
- data/lib/chef-cli/policyfile/local_lock_fetcher.rb +132 -0
- data/lib/chef-cli/policyfile/lock_applier.rb +80 -0
- data/lib/chef-cli/policyfile/lock_fetcher_mixin.rb +37 -0
- data/lib/chef-cli/policyfile/null_cookbook_source.rb +49 -0
- data/lib/chef-cli/policyfile/policyfile_location_specification.rb +128 -0
- data/lib/chef-cli/policyfile/read_cookbook_for_compat_mode_upload.rb +124 -0
- data/lib/chef-cli/policyfile/remote_lock_fetcher.rb +108 -0
- data/lib/chef-cli/policyfile/reports/install.rb +69 -0
- data/lib/chef-cli/policyfile/reports/table_printer.rb +57 -0
- data/lib/chef-cli/policyfile/reports/upload.rb +70 -0
- data/lib/chef-cli/policyfile/solution_dependencies.rb +311 -0
- data/lib/chef-cli/policyfile/source_uri.rb +57 -0
- data/lib/chef-cli/policyfile/storage_config.rb +112 -0
- data/lib/chef-cli/policyfile/undo_record.rb +139 -0
- data/lib/chef-cli/policyfile/undo_stack.rb +128 -0
- data/lib/chef-cli/policyfile/uploader.rb +222 -0
- data/lib/chef-cli/policyfile_compiler.rb +528 -0
- data/lib/chef-cli/policyfile_lock.rb +581 -0
- data/lib/chef-cli/policyfile_services/clean_policies.rb +95 -0
- data/lib/chef-cli/policyfile_services/clean_policy_cookbooks.rb +123 -0
- data/lib/chef-cli/policyfile_services/export_repo.rb +419 -0
- data/lib/chef-cli/policyfile_services/install.rb +167 -0
- data/lib/chef-cli/policyfile_services/push.rb +112 -0
- data/lib/chef-cli/policyfile_services/push_archive.rb +164 -0
- data/lib/chef-cli/policyfile_services/rm_policy.rb +141 -0
- data/lib/chef-cli/policyfile_services/rm_policy_group.rb +85 -0
- data/lib/chef-cli/policyfile_services/show_policy.rb +234 -0
- data/lib/chef-cli/policyfile_services/undelete.rb +108 -0
- data/lib/chef-cli/policyfile_services/update_attributes.rb +110 -0
- data/lib/chef-cli/service_exception_inspectors.rb +24 -0
- data/lib/chef-cli/service_exception_inspectors/base.rb +39 -0
- data/lib/chef-cli/service_exception_inspectors/http.rb +119 -0
- data/lib/chef-cli/service_exceptions.rb +142 -0
- data/lib/chef-cli/shell_out.rb +36 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/Berksfile +3 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/README.md +146 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/kitchen.yml +21 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/test-fixture-recipe.rb +8 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/chefignore +110 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/cookbook_readmes/README-policy.md +9 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/cookbook_readmes/README.md +66 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/delivery-config.json +17 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/delivery-project.toml +34 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/gitignore +22 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/README.md +20 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/README.md +27 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb +7 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/metadata.rb +6 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/recipes/default.rb +8 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/data_bags/README.md +56 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/data_bags/example/example_item.json +4 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/dot-chef-repo.txt +6 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/environments/README.md +9 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/environments/example.json +13 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/policyfiles/README.md +24 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/roles/README.md +9 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/repo/roles/example.json +13 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/spec_helper.rb +2 -0
- data/lib/chef-cli/skeletons/code_generator/files/default/spec_helper_policyfile.rb +2 -0
- data/lib/chef-cli/skeletons/code_generator/metadata.rb +8 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/attribute.rb +11 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/build_cookbook.rb +175 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/cookbook.rb +167 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/cookbook_file.rb +23 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/helpers.rb +19 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/policyfile.rb +7 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/recipe.rb +50 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/repo.rb +71 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/resource.rb +12 -0
- data/lib/chef-cli/skeletons/code_generator/recipes/template.rb +31 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/CHANGELOG.md.erb +11 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.all_rights.erb +3 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.apachev2.erb +201 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.gplv2.erb +339 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.gplv3.erb +674 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.mit.erb +21 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/Policyfile.rb.erb +25 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/README.md.erb +4 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/attribute.rb.erb +0 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/build_cookbook/Berksfile.erb +7 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/build_cookbook/metadata.rb.erb +10 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/build_cookbook/recipe.rb.erb +9 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/cookbook_file.erb +0 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/helpers.rb.erb +39 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/inspec_default_test.rb.erb +16 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen.yml.erb +38 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen_dokken.yml.erb +36 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/kitchen_policyfile.yml.erb +32 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/metadata.rb.erb +20 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/recipe.rb.erb +5 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/recipe_spec.rb.erb +29 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/repo/gitignore.erb +128 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/resource.rb.erb +1 -0
- data/lib/chef-cli/skeletons/code_generator/templates/default/template.erb +0 -0
- data/lib/chef-cli/ui.rb +57 -0
- data/lib/chef-cli/version.rb +20 -0
- data/lib/kitchen/provisioner/policyfile_zero.rb +195 -0
- data/spec/shared/a_file_generator.rb +125 -0
- data/spec/shared/a_generated_file.rb +12 -0
- data/spec/shared/command_with_ui_object.rb +11 -0
- data/spec/shared/custom_generator_cookbook.rb +136 -0
- data/spec/shared/fixture_cookbook_checksums.rb +46 -0
- data/spec/shared/setup_git_committer_config.rb +54 -0
- data/spec/shared/setup_git_cookbooks.rb +53 -0
- data/spec/spec_helper.rb +51 -0
- data/spec/test_helpers.rb +84 -0
- data/spec/unit/chef_runner_spec.rb +139 -0
- data/spec/unit/chef_server_api_multi_spec.rb +120 -0
- data/spec/unit/cli_spec.rb +375 -0
- data/spec/unit/command/base_spec.rb +195 -0
- data/spec/unit/command/clean_policy_cookbooks_spec.rb +180 -0
- data/spec/unit/command/clean_policy_revisions_spec.rb +180 -0
- data/spec/unit/command/delete_policy_group_spec.rb +206 -0
- data/spec/unit/command/delete_policy_spec.rb +206 -0
- data/spec/unit/command/diff_spec.rb +311 -0
- data/spec/unit/command/env_spec.rb +86 -0
- data/spec/unit/command/exec_spec.rb +178 -0
- data/spec/unit/command/export_spec.rb +199 -0
- data/spec/unit/command/generate_spec.rb +142 -0
- data/spec/unit/command/generator_commands/attribute_spec.rb +31 -0
- data/spec/unit/command/generator_commands/base_spec.rb +180 -0
- data/spec/unit/command/generator_commands/build_cookbook_spec.rb +377 -0
- data/spec/unit/command/generator_commands/chef_exts/generator_desc_resource_spec.rb +77 -0
- data/spec/unit/command/generator_commands/chef_exts/recipe_dsl_ext_spec.rb +111 -0
- data/spec/unit/command/generator_commands/cookbook_file_spec.rb +31 -0
- data/spec/unit/command/generator_commands/cookbook_spec.rb +769 -0
- data/spec/unit/command/generator_commands/generator_generator_spec.rb +227 -0
- data/spec/unit/command/generator_commands/helpers_spec.rb +31 -0
- data/spec/unit/command/generator_commands/policyfile_spec.rb +223 -0
- data/spec/unit/command/generator_commands/recipe_spec.rb +37 -0
- data/spec/unit/command/generator_commands/repo_spec.rb +374 -0
- data/spec/unit/command/generator_commands/resource_spec.rb +31 -0
- data/spec/unit/command/generator_commands/template_spec.rb +31 -0
- data/spec/unit/command/install_spec.rb +179 -0
- data/spec/unit/command/push_archive_spec.rb +153 -0
- data/spec/unit/command/push_spec.rb +198 -0
- data/spec/unit/command/shell_init_spec.rb +339 -0
- data/spec/unit/command/show_policy_spec.rb +234 -0
- data/spec/unit/command/undelete_spec.rb +244 -0
- data/spec/unit/command/update_spec.rb +283 -0
- data/spec/unit/command/verify_spec.rb +341 -0
- data/spec/unit/commands_map_spec.rb +57 -0
- data/spec/unit/component_test_spec.rb +128 -0
- data/spec/unit/configurable_spec.rb +68 -0
- data/spec/unit/cookbook_metadata_spec.rb +96 -0
- data/spec/unit/cookbook_profiler/git_spec.rb +176 -0
- data/spec/unit/cookbook_profiler/identifiers_spec.rb +81 -0
- data/spec/unit/fixtures/chef-runner-cookbooks/test_cookbook/recipes/recipe_one.rb +9 -0
- data/spec/unit/fixtures/chef-runner-cookbooks/test_cookbook/recipes/recipe_two.rb +9 -0
- data/spec/unit/fixtures/command/cli_test_command.rb +26 -0
- data/spec/unit/fixtures/command/explicit_path_example.rb +7 -0
- data/spec/unit/fixtures/configurable/test_config_loader.rb +5 -0
- data/spec/unit/fixtures/configurable/test_configurable.rb +10 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/.kitchen.yml +16 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/Berksfile +3 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/README.md +4 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/chefignore +96 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/metadata.rb +8 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/recipes/default.rb +8 -0
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/.kitchen.yml +16 -0
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/Berksfile +3 -0
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/README.md +4 -0
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/chefignore +96 -0
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/metadata.rb +8 -0
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/recipes/default.rb +8 -0
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/Berksfile +3 -0
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/README.md +4 -0
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/chefignore +96 -0
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/kitchen.yml +16 -0
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/metadata.rb +8 -0
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/recipes/default.rb +8 -0
- data/spec/unit/fixtures/cookbooks_api/chef_server_universe.json +56 -0
- data/spec/unit/fixtures/cookbooks_api/pruned_chef_server_universe.json +30 -0
- data/spec/unit/fixtures/cookbooks_api/pruned_small_universe.json +1322 -0
- data/spec/unit/fixtures/cookbooks_api/small_universe.json +2987 -0
- data/spec/unit/fixtures/cookbooks_api/universe.json +1 -0
- data/spec/unit/fixtures/cookbooks_api/update_fixtures.rb +33 -0
- data/spec/unit/fixtures/dev_cookbooks/README.md +16 -0
- data/spec/unit/fixtures/dev_cookbooks/bar-cookbook.gitbundle +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_apps/bin/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_apps/embedded/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_apps/embedded/bin/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_component/bin/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/apps/berkshelf/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/apps/test-kitchen/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/bin/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/bin/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/berkshelf/integration_test +2 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/berkshelf/verify_me +5 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/chef-dk/.keep +0 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/chef/verify_me +3 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/test-kitchen/verify_me +2 -0
- data/spec/unit/fixtures/eg_omnibus_dir/valid/embedded/bin/.keep +0 -0
- data/spec/unit/fixtures/example_app/Policyfile.rb +0 -0
- data/spec/unit/fixtures/example_cookbook/.gitignore +17 -0
- data/spec/unit/fixtures/example_cookbook/.kitchen.yml +16 -0
- data/spec/unit/fixtures/example_cookbook/Berksfile +3 -0
- data/spec/unit/fixtures/example_cookbook/README.md +4 -0
- data/spec/unit/fixtures/example_cookbook/chefignore +96 -0
- data/spec/unit/fixtures/example_cookbook/metadata.rb +8 -0
- data/spec/unit/fixtures/example_cookbook/recipes/default.rb +8 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/.gitignore +17 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/.kitchen.yml +16 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/Berksfile +3 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/README.md +4 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/chefignore +96 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/metadata.json +5 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/recipes/default.rb +8 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/.gitignore +17 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/.kitchen.yml +16 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/Berksfile +3 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/README.md +4 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/chefignore +96 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/recipes/default.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/README.md +4 -0
- data/spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/chefignore +96 -0
- data/spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/metadata.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/recipes/default.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/Berksfile +3 -0
- data/spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/README.md +4 -0
- data/spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/chefignore +96 -0
- data/spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/metadata.rb +9 -0
- data/spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/recipes/default.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/.kitchen.yml +16 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/Berksfile +3 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/README.md +4 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/chefignore +96 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/extra/extra_file.txt +0 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/metadata.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/recipes/default.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/metadata-missing/README.md +2 -0
- data/spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/.kitchen.yml +16 -0
- data/spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/README.md +4 -0
- data/spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/metadata.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/recipes/default.rb +8 -0
- data/spec/unit/generator_spec.rb +119 -0
- data/spec/unit/pager_spec.rb +117 -0
- data/spec/unit/policyfile/artifactory_cookbook_source_spec.rb +59 -0
- data/spec/unit/policyfile/attribute_merge_checker_spec.rb +80 -0
- data/spec/unit/policyfile/chef_repo_cookbook_source_spec.rb +93 -0
- data/spec/unit/policyfile/chef_server_cookbook_source_spec.rb +55 -0
- data/spec/unit/policyfile/chef_server_lock_fetcher_spec.rb +161 -0
- data/spec/unit/policyfile/community_cookbook_source_spec.rb +83 -0
- data/spec/unit/policyfile/comparison_base_spec.rb +340 -0
- data/spec/unit/policyfile/cookbook_location_specification_spec.rb +347 -0
- data/spec/unit/policyfile/cookbook_locks_spec.rb +527 -0
- data/spec/unit/policyfile/delivery_supermarket_source_spec.rb +129 -0
- data/spec/unit/policyfile/differ_spec.rb +686 -0
- data/spec/unit/policyfile/git_lock_fetcher_spec.rb +155 -0
- data/spec/unit/policyfile/included_policies_cookbook_source_spec.rb +242 -0
- data/spec/unit/policyfile/lister_spec.rb +268 -0
- data/spec/unit/policyfile/local_lock_fetcher_spec.rb +199 -0
- data/spec/unit/policyfile/lock_applier_spec.rb +100 -0
- data/spec/unit/policyfile/lock_fetcher_mixin_spec.rb +60 -0
- data/spec/unit/policyfile/null_cookbook_source_spec.rb +34 -0
- data/spec/unit/policyfile/read_cookbook_for_compat_mode_upload_spec.rb +92 -0
- data/spec/unit/policyfile/remote_lock_fetcher_spec.rb +129 -0
- data/spec/unit/policyfile/reports/install_spec.rb +114 -0
- data/spec/unit/policyfile/reports/upload_spec.rb +94 -0
- data/spec/unit/policyfile/solution_dependencies_spec.rb +170 -0
- data/spec/unit/policyfile/source_uri_spec.rb +36 -0
- data/spec/unit/policyfile/storage_config_spec.rb +180 -0
- data/spec/unit/policyfile/undo_record_spec.rb +258 -0
- data/spec/unit/policyfile/undo_stack_spec.rb +265 -0
- data/spec/unit/policyfile/uploader_spec.rb +410 -0
- data/spec/unit/policyfile_demands_spec.rb +1197 -0
- data/spec/unit/policyfile_evaluation_spec.rb +628 -0
- data/spec/unit/policyfile_includes_dsl_spec.rb +220 -0
- data/spec/unit/policyfile_includes_spec.rb +720 -0
- data/spec/unit/policyfile_install_with_includes_spec.rb +232 -0
- data/spec/unit/policyfile_lock_build_spec.rb +1065 -0
- data/spec/unit/policyfile_lock_install_spec.rb +137 -0
- data/spec/unit/policyfile_lock_serialization_spec.rb +424 -0
- data/spec/unit/policyfile_lock_validation_spec.rb +608 -0
- data/spec/unit/policyfile_services/clean_policies_spec.rb +236 -0
- data/spec/unit/policyfile_services/clean_policy_cookbooks_spec.rb +272 -0
- data/spec/unit/policyfile_services/export_repo_spec.rb +473 -0
- data/spec/unit/policyfile_services/install_spec.rb +209 -0
- data/spec/unit/policyfile_services/push_archive_spec.rb +359 -0
- data/spec/unit/policyfile_services/push_spec.rb +249 -0
- data/spec/unit/policyfile_services/rm_policy_group_spec.rb +237 -0
- data/spec/unit/policyfile_services/rm_policy_spec.rb +263 -0
- data/spec/unit/policyfile_services/show_policy_spec.rb +887 -0
- data/spec/unit/policyfile_services/undelete_spec.rb +302 -0
- data/spec/unit/policyfile_services/update_attributes_spec.rb +229 -0
- data/spec/unit/policyfile_services/update_spec.rb +162 -0
- data/spec/unit/service_exception_inspectors/base_spec.rb +41 -0
- data/spec/unit/service_exception_inspectors/http_spec.rb +138 -0
- data/spec/unit/shell_out_spec.rb +34 -0
- metadata +796 -0
@@ -0,0 +1,162 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright (c) 2014-2018, Chef Software Inc.
|
3
|
+
# License:: Apache License, Version 2.0
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
|
18
|
+
require "spec_helper"
|
19
|
+
require "chef-cli/policyfile_services/install"
|
20
|
+
require "chef-cli/policyfile/cookbook_sources"
|
21
|
+
|
22
|
+
describe ChefCLI::PolicyfileServices::Install do
|
23
|
+
|
24
|
+
include ChefCLI::Helpers
|
25
|
+
|
26
|
+
let(:working_dir) do
|
27
|
+
path = File.join(tempdir, "policyfile_services_test_working_dir")
|
28
|
+
Dir.mkdir(path)
|
29
|
+
path
|
30
|
+
end
|
31
|
+
|
32
|
+
let(:policyfile_rb_explicit_name) { nil }
|
33
|
+
|
34
|
+
let(:policyfile_rb_name) { policyfile_rb_explicit_name || "Policyfile.rb" }
|
35
|
+
|
36
|
+
let(:policyfile_rb_path) { File.join(working_dir, policyfile_rb_name) }
|
37
|
+
|
38
|
+
let(:policyfile_lock_name) { "Policyfile.lock.json" }
|
39
|
+
|
40
|
+
let(:policyfile_lock_path) { File.join(working_dir, policyfile_lock_name) }
|
41
|
+
|
42
|
+
let(:ui) { TestHelpers::TestUI.new }
|
43
|
+
|
44
|
+
let(:install_service) { described_class.new(policyfile: policyfile_rb_name, ui: ui, root_dir: working_dir, overwrite: true) }
|
45
|
+
|
46
|
+
let(:storage_config) do
|
47
|
+
ChefCLI::Policyfile::StorageConfig.new( cache_path: nil, relative_paths_root: local_cookbooks_root )
|
48
|
+
end
|
49
|
+
|
50
|
+
let(:policyfile_content) do
|
51
|
+
<<~EOH
|
52
|
+
default_source :community
|
53
|
+
name 'install-example'
|
54
|
+
|
55
|
+
run_list 'top-level'
|
56
|
+
|
57
|
+
cookbook 'top-level'
|
58
|
+
cookbook 'top-level-bis'
|
59
|
+
cookbook 'b', '>= 1.2.3'
|
60
|
+
EOH
|
61
|
+
end
|
62
|
+
|
63
|
+
def cookbook_lock(name, version)
|
64
|
+
{
|
65
|
+
"version" => version,
|
66
|
+
"identifier" => Digest::SHA256.new.hexdigest(version),
|
67
|
+
"dotted_decimal_identifier" => "55385045718000942.66835911167097593.12604218968062",
|
68
|
+
"cache_key" => "#{name}-#{version}-supermarket.chef.io",
|
69
|
+
"origin" => "https://supermarket.chef.io:443/api/v1/cookbooks/#{name}/versions/#{version}/download",
|
70
|
+
"source_options" => {
|
71
|
+
"artifactserver" => "https://supermarket.chef.io:443/api/v1/cookbooks/#{name}/versions/#{version}/download",
|
72
|
+
"version" => version,
|
73
|
+
},
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
let(:policyfile_lock_content) do
|
78
|
+
{
|
79
|
+
"revision_id" => "b33cb73a52bee7254eb53138ee44",
|
80
|
+
"name" => "install-example",
|
81
|
+
"run_list" => [ "recipe[top-level::default]" ],
|
82
|
+
"cookbook_locks" => {
|
83
|
+
"top-level" => cookbook_lock("top-level", "1.2.0"),
|
84
|
+
"a" => cookbook_lock("a", "2.1.0"),
|
85
|
+
"b" => cookbook_lock("b", "1.2.3"),
|
86
|
+
"top-level-bis" => cookbook_lock("top-level-bis", "1.0.0"),
|
87
|
+
},
|
88
|
+
"default_attributes" => {},
|
89
|
+
"override_attributes" => {},
|
90
|
+
"solution_dependencies" => {
|
91
|
+
"Policyfile" => [
|
92
|
+
[ "top-level", "= 1.2.0" ],
|
93
|
+
[ "a", "= 2.1.0" ],
|
94
|
+
[ "b", "= 1.2.3" ],
|
95
|
+
[ "top-level-bis", "= 1.0.0" ],
|
96
|
+
],
|
97
|
+
"dependencies" => {
|
98
|
+
"top-level (1.2.0)" => [ [ "a", "~> 2.1" ], [ "b", "~> 1.0" ] ],
|
99
|
+
"a (2.1.0)" => [],
|
100
|
+
"b (1.2.3)" => [],
|
101
|
+
"top-level-bis (1.0.0)" => [],
|
102
|
+
},
|
103
|
+
},
|
104
|
+
}.to_json
|
105
|
+
end
|
106
|
+
|
107
|
+
shared_examples "regular update operation" do
|
108
|
+
it "allows update on cookbook to update" do
|
109
|
+
expect(install_service.policyfile_compiler.dsl.cookbook_location_specs["top-level"].version_constraint.to_s).to eq(">= 0.0.0")
|
110
|
+
end
|
111
|
+
|
112
|
+
it "does not update unrelated cookbooks" do
|
113
|
+
expect(install_service.policyfile_compiler.dsl.cookbook_location_specs["top-level-bis"].version_constraint.to_s).to eq("= 1.0.0")
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
117
|
+
|
118
|
+
context "when given one cookbook to update" do
|
119
|
+
before(:each) do
|
120
|
+
# stub access to Policyfile.rb and Policyfile.lock.json
|
121
|
+
allow(File).to receive(:exist?).and_call_original
|
122
|
+
expect(File).to receive(:exist?).at_least(:once).with(policyfile_rb_path).and_return(true)
|
123
|
+
expect(File).to receive(:exist?).at_least(:once).with(policyfile_lock_path).and_return(true)
|
124
|
+
|
125
|
+
allow(IO).to receive(:read).and_call_original
|
126
|
+
expect(IO).to receive(:read).with(policyfile_rb_path).and_return(policyfile_content)
|
127
|
+
expect(IO).to receive(:read).with(policyfile_lock_path).and_return(policyfile_lock_content)
|
128
|
+
|
129
|
+
# lock generation is a no-op. Its behavior is already tested
|
130
|
+
# elsewhere. We only check constraints changes
|
131
|
+
expect(install_service).to receive(:generate_lock_and_install)
|
132
|
+
|
133
|
+
expect { install_service.run(["top-level"], exclude_deps) }.not_to raise_error
|
134
|
+
end
|
135
|
+
|
136
|
+
context "without exclude-deps flag" do
|
137
|
+
let(:exclude_deps) { false }
|
138
|
+
|
139
|
+
it_behaves_like "regular update operation"
|
140
|
+
|
141
|
+
it "allows update on dependencies" do
|
142
|
+
expect(install_service.policyfile_compiler.dsl.cookbook_location_specs["a"]).to be_nil
|
143
|
+
end
|
144
|
+
|
145
|
+
it "preserves existing constraints from Policyfile" do
|
146
|
+
expect(install_service.policyfile_compiler.dsl.cookbook_location_specs["b"].version_constraint.to_s).to eq(">= 1.2.3")
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
context "with exclude-deps flag" do
|
151
|
+
let(:exclude_deps) { true }
|
152
|
+
|
153
|
+
it_behaves_like "regular update operation"
|
154
|
+
|
155
|
+
it "does not allow update on dependencies" do
|
156
|
+
expect(install_service.policyfile_compiler.dsl.cookbook_location_specs["a"].version_constraint.to_s).to eq("= 2.1.0")
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
end
|
161
|
+
|
162
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
|
3
|
+
# License:: Apache License, Version 2.0
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
|
18
|
+
require "spec_helper"
|
19
|
+
require "chef-cli/service_exception_inspectors/base"
|
20
|
+
|
21
|
+
describe ChefCLI::ServiceExceptionInspectors::Base do
|
22
|
+
|
23
|
+
let(:message) { "something went wrong, oops" }
|
24
|
+
|
25
|
+
let(:exception) { StandardError.new(message) }
|
26
|
+
|
27
|
+
subject(:inspector) { described_class.new(exception) }
|
28
|
+
|
29
|
+
it "has an exception" do
|
30
|
+
expect(inspector.exception).to eq(exception)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "gives the exception's message" do
|
34
|
+
expect(inspector.message).to eq(message)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "has no extended error information" do
|
38
|
+
expect(inspector.extended_error_info).to eq("")
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,138 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
|
3
|
+
# License:: Apache License, Version 2.0
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
|
18
|
+
require "spec_helper"
|
19
|
+
require "net/http"
|
20
|
+
require "chef/monkey_patches/net_http"
|
21
|
+
require "chef-cli/service_exception_inspectors/http"
|
22
|
+
|
23
|
+
describe ChefCLI::ServiceExceptionInspectors::HTTP do
|
24
|
+
|
25
|
+
let(:message) { "something went wrong, oops" }
|
26
|
+
|
27
|
+
let(:response_body) { "" }
|
28
|
+
|
29
|
+
let(:request_headers) do
|
30
|
+
{
|
31
|
+
"content-type" => "application/json",
|
32
|
+
"accept" => "application/json",
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
let(:request_body) { "this is the request" }
|
37
|
+
|
38
|
+
let(:request) do
|
39
|
+
r = instance_double(Net::HTTP::Post,
|
40
|
+
method: "POST",
|
41
|
+
uri: nil,
|
42
|
+
path: "/organizations/chef-oss-dev/cookbooks",
|
43
|
+
body: request_body)
|
44
|
+
stub = allow(r).to(receive(:each_header))
|
45
|
+
request_headers.each { |k, v| stub.and_yield(k, v) }
|
46
|
+
r
|
47
|
+
end
|
48
|
+
|
49
|
+
let(:response_headers) do
|
50
|
+
{
|
51
|
+
"server" => "ngx_openresty",
|
52
|
+
"date" => "Wed, 29 Oct 2014 22:27:47 GMT",
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
let(:response) do
|
57
|
+
r = instance_double(Net::HTTPClientError,
|
58
|
+
code: "400",
|
59
|
+
message: "Bad Request",
|
60
|
+
body: response_body)
|
61
|
+
stub = allow(r).to(receive(:each_header))
|
62
|
+
response_headers.each { |k, v| stub.and_yield(k, v) }
|
63
|
+
r
|
64
|
+
end
|
65
|
+
|
66
|
+
let(:exception) do
|
67
|
+
Net::HTTPServerException.new(message, response).tap { |e| e.chef_rest_request = request }
|
68
|
+
end
|
69
|
+
|
70
|
+
subject(:inspector) { described_class.new(exception) }
|
71
|
+
|
72
|
+
it "has an exception" do
|
73
|
+
expect(inspector.exception).to eq(exception)
|
74
|
+
end
|
75
|
+
|
76
|
+
context "with a string response body" do
|
77
|
+
|
78
|
+
let(:response_body) { "No sir, I didn't like it" }
|
79
|
+
|
80
|
+
it "gives a customized exception message including the server response" do
|
81
|
+
expect(inspector.message).to eq("HTTP 400 Bad Request: No sir, I didn't like it")
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
|
86
|
+
context "with an empty response body" do
|
87
|
+
|
88
|
+
let(:response_body) { "" }
|
89
|
+
|
90
|
+
it "gives a customized exception message including the server response" do
|
91
|
+
expect(inspector.message).to eq("HTTP 400 Bad Request: (No explanation provided by server)")
|
92
|
+
end
|
93
|
+
|
94
|
+
end
|
95
|
+
|
96
|
+
context "with a JSON response body in the standard Chef Infra Server format" do
|
97
|
+
|
98
|
+
let(:response_body) { %q[{"error":["Field 'name' invalid"]}] }
|
99
|
+
|
100
|
+
it "gives a customized exception message including the server response" do
|
101
|
+
expect(inspector.message).to eq("HTTP 400 Bad Request: Field 'name' invalid")
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
105
|
+
|
106
|
+
describe "showing the request and response in extended error info" do
|
107
|
+
|
108
|
+
let(:response_body) { "this is the response" }
|
109
|
+
|
110
|
+
it "shows the request in a format similar to HTTP messages" do
|
111
|
+
expected_request_string = <<~E
|
112
|
+
--- REQUEST DATA ----
|
113
|
+
POST /organizations/chef-oss-dev/cookbooks
|
114
|
+
content-type: application/json
|
115
|
+
accept: application/json
|
116
|
+
|
117
|
+
this is the request
|
118
|
+
|
119
|
+
E
|
120
|
+
expect(inspector.extended_error_info).to include(expected_request_string)
|
121
|
+
end
|
122
|
+
|
123
|
+
it "shows the response in a format similar to HTTP messages" do
|
124
|
+
expected_response_string = <<~E
|
125
|
+
--- RESPONSE DATA ---
|
126
|
+
400 Bad Request
|
127
|
+
server: ngx_openresty
|
128
|
+
date: Wed, 29 Oct 2014 22:27:47 GMT
|
129
|
+
|
130
|
+
|
131
|
+
this is the response
|
132
|
+
E
|
133
|
+
expect(inspector.extended_error_info).to include(expected_response_string)
|
134
|
+
end
|
135
|
+
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#
|
2
|
+
# Copyright:: Copyright (c) 2014-2018 Chef Software Inc.
|
3
|
+
# License:: Apache License, Version 2.0
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
#
|
17
|
+
|
18
|
+
require "spec_helper"
|
19
|
+
require "chef-cli/shell_out"
|
20
|
+
|
21
|
+
describe ChefCLI::ShellOut do
|
22
|
+
|
23
|
+
describe "providing the API expected by CookbookOmnifetch" do
|
24
|
+
|
25
|
+
it "provides a `shell_out` class method" do
|
26
|
+
expect(described_class).to respond_to(:shell_out)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "responds to #success?" do
|
30
|
+
expect(described_class.new("echo 'foo'")).to respond_to(:success?)
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,796 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chef-cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chef Software, Inc.
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mixlib-cli
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.7'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: mixlib-shellout
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.0'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '4.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.0'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '4.0'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: ffi-yajl
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1.0'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.0'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3.0'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: minitar
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0.6'
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0.6'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: chef
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '15.0'
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '15.0'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: solve
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '2.0'
|
108
|
+
- - "<"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '5.0'
|
111
|
+
type: :runtime
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.0'
|
118
|
+
- - "<"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '5.0'
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: addressable
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 2.3.5
|
128
|
+
- - "<"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.6'
|
131
|
+
type: :runtime
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 2.3.5
|
138
|
+
- - "<"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '2.6'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: cookbook-omnifetch
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0.5'
|
148
|
+
type: :runtime
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0.5'
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: diff-lcs
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - "~>"
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '1.0'
|
162
|
+
type: :runtime
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '1.0'
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: paint
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '1.0'
|
176
|
+
type: :runtime
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '1.0'
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: license-acceptance
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '1.0'
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 1.0.11
|
193
|
+
type: :runtime
|
194
|
+
prerelease: false
|
195
|
+
version_requirements: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '1.0'
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 1.0.11
|
203
|
+
description: A streamlined development and deployment workflow for Chef platform.
|
204
|
+
email:
|
205
|
+
- info@chef.io
|
206
|
+
executables:
|
207
|
+
- chef
|
208
|
+
extensions: []
|
209
|
+
extra_rdoc_files: []
|
210
|
+
files:
|
211
|
+
- Gemfile
|
212
|
+
- LICENSE
|
213
|
+
- Rakefile
|
214
|
+
- bin/chef
|
215
|
+
- chef-cli.gemspec
|
216
|
+
- lib/chef-cli.rb
|
217
|
+
- lib/chef-cli/authenticated_http.rb
|
218
|
+
- lib/chef-cli/builtin_commands.rb
|
219
|
+
- lib/chef-cli/chef_runner.rb
|
220
|
+
- lib/chef-cli/chef_server_api_multi.rb
|
221
|
+
- lib/chef-cli/cli.rb
|
222
|
+
- lib/chef-cli/command/base.rb
|
223
|
+
- lib/chef-cli/command/clean_policy_cookbooks.rb
|
224
|
+
- lib/chef-cli/command/clean_policy_revisions.rb
|
225
|
+
- lib/chef-cli/command/delete_policy.rb
|
226
|
+
- lib/chef-cli/command/delete_policy_group.rb
|
227
|
+
- lib/chef-cli/command/describe_cookbook.rb
|
228
|
+
- lib/chef-cli/command/diff.rb
|
229
|
+
- lib/chef-cli/command/env.rb
|
230
|
+
- lib/chef-cli/command/exec.rb
|
231
|
+
- lib/chef-cli/command/export.rb
|
232
|
+
- lib/chef-cli/command/gem.rb
|
233
|
+
- lib/chef-cli/command/generate.rb
|
234
|
+
- lib/chef-cli/command/generator_commands.rb
|
235
|
+
- lib/chef-cli/command/generator_commands/attribute.rb
|
236
|
+
- lib/chef-cli/command/generator_commands/base.rb
|
237
|
+
- lib/chef-cli/command/generator_commands/build_cookbook.rb
|
238
|
+
- lib/chef-cli/command/generator_commands/chef_exts/generator_desc_resource.rb
|
239
|
+
- lib/chef-cli/command/generator_commands/chef_exts/quieter_doc_formatter.rb
|
240
|
+
- lib/chef-cli/command/generator_commands/chef_exts/recipe_dsl_ext.rb
|
241
|
+
- lib/chef-cli/command/generator_commands/cookbook.rb
|
242
|
+
- lib/chef-cli/command/generator_commands/cookbook_code_file.rb
|
243
|
+
- lib/chef-cli/command/generator_commands/cookbook_file.rb
|
244
|
+
- lib/chef-cli/command/generator_commands/generator_generator.rb
|
245
|
+
- lib/chef-cli/command/generator_commands/helpers.rb
|
246
|
+
- lib/chef-cli/command/generator_commands/policyfile.rb
|
247
|
+
- lib/chef-cli/command/generator_commands/recipe.rb
|
248
|
+
- lib/chef-cli/command/generator_commands/repo.rb
|
249
|
+
- lib/chef-cli/command/generator_commands/resource.rb
|
250
|
+
- lib/chef-cli/command/generator_commands/template.rb
|
251
|
+
- lib/chef-cli/command/install.rb
|
252
|
+
- lib/chef-cli/command/provision.rb
|
253
|
+
- lib/chef-cli/command/push.rb
|
254
|
+
- lib/chef-cli/command/push_archive.rb
|
255
|
+
- lib/chef-cli/command/shell_init.rb
|
256
|
+
- lib/chef-cli/command/show_policy.rb
|
257
|
+
- lib/chef-cli/command/undelete.rb
|
258
|
+
- lib/chef-cli/command/update.rb
|
259
|
+
- lib/chef-cli/command/verify.rb
|
260
|
+
- lib/chef-cli/commands_map.rb
|
261
|
+
- lib/chef-cli/completions/bash.sh.erb
|
262
|
+
- lib/chef-cli/completions/chef.fish.erb
|
263
|
+
- lib/chef-cli/completions/zsh.zsh.erb
|
264
|
+
- lib/chef-cli/component_test.rb
|
265
|
+
- lib/chef-cli/configurable.rb
|
266
|
+
- lib/chef-cli/cookbook_metadata.rb
|
267
|
+
- lib/chef-cli/cookbook_omnifetch.rb
|
268
|
+
- lib/chef-cli/cookbook_profiler/git.rb
|
269
|
+
- lib/chef-cli/cookbook_profiler/identifiers.rb
|
270
|
+
- lib/chef-cli/cookbook_profiler/null_scm.rb
|
271
|
+
- lib/chef-cli/dist.rb
|
272
|
+
- lib/chef-cli/exceptions.rb
|
273
|
+
- lib/chef-cli/generator.rb
|
274
|
+
- lib/chef-cli/helpers.rb
|
275
|
+
- lib/chef-cli/pager.rb
|
276
|
+
- lib/chef-cli/policyfile/artifactory_cookbook_source.rb
|
277
|
+
- lib/chef-cli/policyfile/attribute_merge_checker.rb
|
278
|
+
- lib/chef-cli/policyfile/chef_repo_cookbook_source.rb
|
279
|
+
- lib/chef-cli/policyfile/chef_server_cookbook_source.rb
|
280
|
+
- lib/chef-cli/policyfile/chef_server_lock_fetcher.rb
|
281
|
+
- lib/chef-cli/policyfile/community_cookbook_source.rb
|
282
|
+
- lib/chef-cli/policyfile/comparison_base.rb
|
283
|
+
- lib/chef-cli/policyfile/cookbook_location_specification.rb
|
284
|
+
- lib/chef-cli/policyfile/cookbook_locks.rb
|
285
|
+
- lib/chef-cli/policyfile/cookbook_sources.rb
|
286
|
+
- lib/chef-cli/policyfile/delivery_supermarket_source.rb
|
287
|
+
- lib/chef-cli/policyfile/differ.rb
|
288
|
+
- lib/chef-cli/policyfile/dsl.rb
|
289
|
+
- lib/chef-cli/policyfile/git_lock_fetcher.rb
|
290
|
+
- lib/chef-cli/policyfile/included_policies_cookbook_source.rb
|
291
|
+
- lib/chef-cli/policyfile/lister.rb
|
292
|
+
- lib/chef-cli/policyfile/local_lock_fetcher.rb
|
293
|
+
- lib/chef-cli/policyfile/lock_applier.rb
|
294
|
+
- lib/chef-cli/policyfile/lock_fetcher_mixin.rb
|
295
|
+
- lib/chef-cli/policyfile/null_cookbook_source.rb
|
296
|
+
- lib/chef-cli/policyfile/policyfile_location_specification.rb
|
297
|
+
- lib/chef-cli/policyfile/read_cookbook_for_compat_mode_upload.rb
|
298
|
+
- lib/chef-cli/policyfile/remote_lock_fetcher.rb
|
299
|
+
- lib/chef-cli/policyfile/reports/install.rb
|
300
|
+
- lib/chef-cli/policyfile/reports/table_printer.rb
|
301
|
+
- lib/chef-cli/policyfile/reports/upload.rb
|
302
|
+
- lib/chef-cli/policyfile/solution_dependencies.rb
|
303
|
+
- lib/chef-cli/policyfile/source_uri.rb
|
304
|
+
- lib/chef-cli/policyfile/storage_config.rb
|
305
|
+
- lib/chef-cli/policyfile/undo_record.rb
|
306
|
+
- lib/chef-cli/policyfile/undo_stack.rb
|
307
|
+
- lib/chef-cli/policyfile/uploader.rb
|
308
|
+
- lib/chef-cli/policyfile_compiler.rb
|
309
|
+
- lib/chef-cli/policyfile_lock.rb
|
310
|
+
- lib/chef-cli/policyfile_services/clean_policies.rb
|
311
|
+
- lib/chef-cli/policyfile_services/clean_policy_cookbooks.rb
|
312
|
+
- lib/chef-cli/policyfile_services/export_repo.rb
|
313
|
+
- lib/chef-cli/policyfile_services/install.rb
|
314
|
+
- lib/chef-cli/policyfile_services/push.rb
|
315
|
+
- lib/chef-cli/policyfile_services/push_archive.rb
|
316
|
+
- lib/chef-cli/policyfile_services/rm_policy.rb
|
317
|
+
- lib/chef-cli/policyfile_services/rm_policy_group.rb
|
318
|
+
- lib/chef-cli/policyfile_services/show_policy.rb
|
319
|
+
- lib/chef-cli/policyfile_services/undelete.rb
|
320
|
+
- lib/chef-cli/policyfile_services/update_attributes.rb
|
321
|
+
- lib/chef-cli/service_exception_inspectors.rb
|
322
|
+
- lib/chef-cli/service_exception_inspectors/base.rb
|
323
|
+
- lib/chef-cli/service_exception_inspectors/http.rb
|
324
|
+
- lib/chef-cli/service_exceptions.rb
|
325
|
+
- lib/chef-cli/shell_out.rb
|
326
|
+
- lib/chef-cli/skeletons/code_generator/files/default/Berksfile
|
327
|
+
- lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/README.md
|
328
|
+
- lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/kitchen.yml
|
329
|
+
- lib/chef-cli/skeletons/code_generator/files/default/build_cookbook/test-fixture-recipe.rb
|
330
|
+
- lib/chef-cli/skeletons/code_generator/files/default/chefignore
|
331
|
+
- lib/chef-cli/skeletons/code_generator/files/default/cookbook_readmes/README-policy.md
|
332
|
+
- lib/chef-cli/skeletons/code_generator/files/default/cookbook_readmes/README.md
|
333
|
+
- lib/chef-cli/skeletons/code_generator/files/default/delivery-config.json
|
334
|
+
- lib/chef-cli/skeletons/code_generator/files/default/delivery-project.toml
|
335
|
+
- lib/chef-cli/skeletons/code_generator/files/default/gitignore
|
336
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/README.md
|
337
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/README.md
|
338
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/attributes/default.rb
|
339
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/metadata.rb
|
340
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/cookbooks/example/recipes/default.rb
|
341
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/data_bags/README.md
|
342
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/data_bags/example/example_item.json
|
343
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/dot-chef-repo.txt
|
344
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/environments/README.md
|
345
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/environments/example.json
|
346
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/policyfiles/README.md
|
347
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/roles/README.md
|
348
|
+
- lib/chef-cli/skeletons/code_generator/files/default/repo/roles/example.json
|
349
|
+
- lib/chef-cli/skeletons/code_generator/files/default/spec_helper.rb
|
350
|
+
- lib/chef-cli/skeletons/code_generator/files/default/spec_helper_policyfile.rb
|
351
|
+
- lib/chef-cli/skeletons/code_generator/metadata.rb
|
352
|
+
- lib/chef-cli/skeletons/code_generator/recipes/attribute.rb
|
353
|
+
- lib/chef-cli/skeletons/code_generator/recipes/build_cookbook.rb
|
354
|
+
- lib/chef-cli/skeletons/code_generator/recipes/cookbook.rb
|
355
|
+
- lib/chef-cli/skeletons/code_generator/recipes/cookbook_file.rb
|
356
|
+
- lib/chef-cli/skeletons/code_generator/recipes/helpers.rb
|
357
|
+
- lib/chef-cli/skeletons/code_generator/recipes/policyfile.rb
|
358
|
+
- lib/chef-cli/skeletons/code_generator/recipes/recipe.rb
|
359
|
+
- lib/chef-cli/skeletons/code_generator/recipes/repo.rb
|
360
|
+
- lib/chef-cli/skeletons/code_generator/recipes/resource.rb
|
361
|
+
- lib/chef-cli/skeletons/code_generator/recipes/template.rb
|
362
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/CHANGELOG.md.erb
|
363
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.all_rights.erb
|
364
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.apachev2.erb
|
365
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.gplv2.erb
|
366
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.gplv3.erb
|
367
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/LICENSE.mit.erb
|
368
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/Policyfile.rb.erb
|
369
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/README.md.erb
|
370
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/attribute.rb.erb
|
371
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/build_cookbook/Berksfile.erb
|
372
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/build_cookbook/metadata.rb.erb
|
373
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/build_cookbook/recipe.rb.erb
|
374
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/cookbook_file.erb
|
375
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/helpers.rb.erb
|
376
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/inspec_default_test.rb.erb
|
377
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/kitchen.yml.erb
|
378
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/kitchen_dokken.yml.erb
|
379
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/kitchen_policyfile.yml.erb
|
380
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/metadata.rb.erb
|
381
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/recipe.rb.erb
|
382
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/recipe_spec.rb.erb
|
383
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/repo/gitignore.erb
|
384
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/resource.rb.erb
|
385
|
+
- lib/chef-cli/skeletons/code_generator/templates/default/template.erb
|
386
|
+
- lib/chef-cli/ui.rb
|
387
|
+
- lib/chef-cli/version.rb
|
388
|
+
- lib/kitchen/provisioner/policyfile_zero.rb
|
389
|
+
- spec/shared/a_file_generator.rb
|
390
|
+
- spec/shared/a_generated_file.rb
|
391
|
+
- spec/shared/command_with_ui_object.rb
|
392
|
+
- spec/shared/custom_generator_cookbook.rb
|
393
|
+
- spec/shared/fixture_cookbook_checksums.rb
|
394
|
+
- spec/shared/setup_git_committer_config.rb
|
395
|
+
- spec/shared/setup_git_cookbooks.rb
|
396
|
+
- spec/spec_helper.rb
|
397
|
+
- spec/test_helpers.rb
|
398
|
+
- spec/unit/chef_runner_spec.rb
|
399
|
+
- spec/unit/chef_server_api_multi_spec.rb
|
400
|
+
- spec/unit/cli_spec.rb
|
401
|
+
- spec/unit/command/base_spec.rb
|
402
|
+
- spec/unit/command/clean_policy_cookbooks_spec.rb
|
403
|
+
- spec/unit/command/clean_policy_revisions_spec.rb
|
404
|
+
- spec/unit/command/delete_policy_group_spec.rb
|
405
|
+
- spec/unit/command/delete_policy_spec.rb
|
406
|
+
- spec/unit/command/diff_spec.rb
|
407
|
+
- spec/unit/command/env_spec.rb
|
408
|
+
- spec/unit/command/exec_spec.rb
|
409
|
+
- spec/unit/command/export_spec.rb
|
410
|
+
- spec/unit/command/generate_spec.rb
|
411
|
+
- spec/unit/command/generator_commands/attribute_spec.rb
|
412
|
+
- spec/unit/command/generator_commands/base_spec.rb
|
413
|
+
- spec/unit/command/generator_commands/build_cookbook_spec.rb
|
414
|
+
- spec/unit/command/generator_commands/chef_exts/generator_desc_resource_spec.rb
|
415
|
+
- spec/unit/command/generator_commands/chef_exts/recipe_dsl_ext_spec.rb
|
416
|
+
- spec/unit/command/generator_commands/cookbook_file_spec.rb
|
417
|
+
- spec/unit/command/generator_commands/cookbook_spec.rb
|
418
|
+
- spec/unit/command/generator_commands/generator_generator_spec.rb
|
419
|
+
- spec/unit/command/generator_commands/helpers_spec.rb
|
420
|
+
- spec/unit/command/generator_commands/policyfile_spec.rb
|
421
|
+
- spec/unit/command/generator_commands/recipe_spec.rb
|
422
|
+
- spec/unit/command/generator_commands/repo_spec.rb
|
423
|
+
- spec/unit/command/generator_commands/resource_spec.rb
|
424
|
+
- spec/unit/command/generator_commands/template_spec.rb
|
425
|
+
- spec/unit/command/install_spec.rb
|
426
|
+
- spec/unit/command/push_archive_spec.rb
|
427
|
+
- spec/unit/command/push_spec.rb
|
428
|
+
- spec/unit/command/shell_init_spec.rb
|
429
|
+
- spec/unit/command/show_policy_spec.rb
|
430
|
+
- spec/unit/command/undelete_spec.rb
|
431
|
+
- spec/unit/command/update_spec.rb
|
432
|
+
- spec/unit/command/verify_spec.rb
|
433
|
+
- spec/unit/commands_map_spec.rb
|
434
|
+
- spec/unit/component_test_spec.rb
|
435
|
+
- spec/unit/configurable_spec.rb
|
436
|
+
- spec/unit/cookbook_metadata_spec.rb
|
437
|
+
- spec/unit/cookbook_profiler/git_spec.rb
|
438
|
+
- spec/unit/cookbook_profiler/identifiers_spec.rb
|
439
|
+
- spec/unit/fixtures/chef-runner-cookbooks/test_cookbook/recipes/recipe_one.rb
|
440
|
+
- spec/unit/fixtures/chef-runner-cookbooks/test_cookbook/recipes/recipe_two.rb
|
441
|
+
- spec/unit/fixtures/command/cli_test_command.rb
|
442
|
+
- spec/unit/fixtures/command/explicit_path_example.rb
|
443
|
+
- spec/unit/fixtures/configurable/test_config_loader.rb
|
444
|
+
- spec/unit/fixtures/configurable/test_configurable.rb
|
445
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/.kitchen.yml
|
446
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/Berksfile
|
447
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/README.md
|
448
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/chefignore
|
449
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/metadata.rb
|
450
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/recipes/default.rb
|
451
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/.kitchen.yml
|
452
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/Berksfile
|
453
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/README.md
|
454
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/chefignore
|
455
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/metadata.rb
|
456
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/recipes/default.rb
|
457
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/Berksfile
|
458
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/README.md
|
459
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/chefignore
|
460
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/kitchen.yml
|
461
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/metadata.rb
|
462
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/recipes/default.rb
|
463
|
+
- spec/unit/fixtures/cookbooks_api/chef_server_universe.json
|
464
|
+
- spec/unit/fixtures/cookbooks_api/pruned_chef_server_universe.json
|
465
|
+
- spec/unit/fixtures/cookbooks_api/pruned_small_universe.json
|
466
|
+
- spec/unit/fixtures/cookbooks_api/small_universe.json
|
467
|
+
- spec/unit/fixtures/cookbooks_api/universe.json
|
468
|
+
- spec/unit/fixtures/cookbooks_api/update_fixtures.rb
|
469
|
+
- spec/unit/fixtures/dev_cookbooks/README.md
|
470
|
+
- spec/unit/fixtures/dev_cookbooks/bar-cookbook.gitbundle
|
471
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_apps/bin/.keep
|
472
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_apps/embedded/.keep
|
473
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_apps/embedded/bin/.keep
|
474
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/bin/.keep
|
475
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/apps/berkshelf/.keep
|
476
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/apps/test-kitchen/.keep
|
477
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/bin/.keep
|
478
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/bin/.keep
|
479
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/berkshelf/integration_test
|
480
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/berkshelf/verify_me
|
481
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/chef-dk/.keep
|
482
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/chef/verify_me
|
483
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/test-kitchen/verify_me
|
484
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/bin/.keep
|
485
|
+
- spec/unit/fixtures/example_app/Policyfile.rb
|
486
|
+
- spec/unit/fixtures/example_cookbook/.gitignore
|
487
|
+
- spec/unit/fixtures/example_cookbook/.kitchen.yml
|
488
|
+
- spec/unit/fixtures/example_cookbook/Berksfile
|
489
|
+
- spec/unit/fixtures/example_cookbook/README.md
|
490
|
+
- spec/unit/fixtures/example_cookbook/chefignore
|
491
|
+
- spec/unit/fixtures/example_cookbook/metadata.rb
|
492
|
+
- spec/unit/fixtures/example_cookbook/recipes/default.rb
|
493
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.gitignore
|
494
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.kitchen.yml
|
495
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/Berksfile
|
496
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/README.md
|
497
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/chefignore
|
498
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/metadata.json
|
499
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/recipes/default.rb
|
500
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.gitignore
|
501
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.kitchen.yml
|
502
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/Berksfile
|
503
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/README.md
|
504
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/chefignore
|
505
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/recipes/default.rb
|
506
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/README.md
|
507
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/chefignore
|
508
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/metadata.rb
|
509
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/recipes/default.rb
|
510
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/Berksfile
|
511
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/README.md
|
512
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/chefignore
|
513
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/metadata.rb
|
514
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/recipes/default.rb
|
515
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/.kitchen.yml
|
516
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/Berksfile
|
517
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/README.md
|
518
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/chefignore
|
519
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/extra/extra_file.txt
|
520
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/metadata.rb
|
521
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/recipes/default.rb
|
522
|
+
- spec/unit/fixtures/local_path_cookbooks/metadata-missing/README.md
|
523
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/.kitchen.yml
|
524
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/README.md
|
525
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/metadata.rb
|
526
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/recipes/default.rb
|
527
|
+
- spec/unit/generator_spec.rb
|
528
|
+
- spec/unit/pager_spec.rb
|
529
|
+
- spec/unit/policyfile/artifactory_cookbook_source_spec.rb
|
530
|
+
- spec/unit/policyfile/attribute_merge_checker_spec.rb
|
531
|
+
- spec/unit/policyfile/chef_repo_cookbook_source_spec.rb
|
532
|
+
- spec/unit/policyfile/chef_server_cookbook_source_spec.rb
|
533
|
+
- spec/unit/policyfile/chef_server_lock_fetcher_spec.rb
|
534
|
+
- spec/unit/policyfile/community_cookbook_source_spec.rb
|
535
|
+
- spec/unit/policyfile/comparison_base_spec.rb
|
536
|
+
- spec/unit/policyfile/cookbook_location_specification_spec.rb
|
537
|
+
- spec/unit/policyfile/cookbook_locks_spec.rb
|
538
|
+
- spec/unit/policyfile/delivery_supermarket_source_spec.rb
|
539
|
+
- spec/unit/policyfile/differ_spec.rb
|
540
|
+
- spec/unit/policyfile/git_lock_fetcher_spec.rb
|
541
|
+
- spec/unit/policyfile/included_policies_cookbook_source_spec.rb
|
542
|
+
- spec/unit/policyfile/lister_spec.rb
|
543
|
+
- spec/unit/policyfile/local_lock_fetcher_spec.rb
|
544
|
+
- spec/unit/policyfile/lock_applier_spec.rb
|
545
|
+
- spec/unit/policyfile/lock_fetcher_mixin_spec.rb
|
546
|
+
- spec/unit/policyfile/null_cookbook_source_spec.rb
|
547
|
+
- spec/unit/policyfile/read_cookbook_for_compat_mode_upload_spec.rb
|
548
|
+
- spec/unit/policyfile/remote_lock_fetcher_spec.rb
|
549
|
+
- spec/unit/policyfile/reports/install_spec.rb
|
550
|
+
- spec/unit/policyfile/reports/upload_spec.rb
|
551
|
+
- spec/unit/policyfile/solution_dependencies_spec.rb
|
552
|
+
- spec/unit/policyfile/source_uri_spec.rb
|
553
|
+
- spec/unit/policyfile/storage_config_spec.rb
|
554
|
+
- spec/unit/policyfile/undo_record_spec.rb
|
555
|
+
- spec/unit/policyfile/undo_stack_spec.rb
|
556
|
+
- spec/unit/policyfile/uploader_spec.rb
|
557
|
+
- spec/unit/policyfile_demands_spec.rb
|
558
|
+
- spec/unit/policyfile_evaluation_spec.rb
|
559
|
+
- spec/unit/policyfile_includes_dsl_spec.rb
|
560
|
+
- spec/unit/policyfile_includes_spec.rb
|
561
|
+
- spec/unit/policyfile_install_with_includes_spec.rb
|
562
|
+
- spec/unit/policyfile_lock_build_spec.rb
|
563
|
+
- spec/unit/policyfile_lock_install_spec.rb
|
564
|
+
- spec/unit/policyfile_lock_serialization_spec.rb
|
565
|
+
- spec/unit/policyfile_lock_validation_spec.rb
|
566
|
+
- spec/unit/policyfile_services/clean_policies_spec.rb
|
567
|
+
- spec/unit/policyfile_services/clean_policy_cookbooks_spec.rb
|
568
|
+
- spec/unit/policyfile_services/export_repo_spec.rb
|
569
|
+
- spec/unit/policyfile_services/install_spec.rb
|
570
|
+
- spec/unit/policyfile_services/push_archive_spec.rb
|
571
|
+
- spec/unit/policyfile_services/push_spec.rb
|
572
|
+
- spec/unit/policyfile_services/rm_policy_group_spec.rb
|
573
|
+
- spec/unit/policyfile_services/rm_policy_spec.rb
|
574
|
+
- spec/unit/policyfile_services/show_policy_spec.rb
|
575
|
+
- spec/unit/policyfile_services/undelete_spec.rb
|
576
|
+
- spec/unit/policyfile_services/update_attributes_spec.rb
|
577
|
+
- spec/unit/policyfile_services/update_spec.rb
|
578
|
+
- spec/unit/service_exception_inspectors/base_spec.rb
|
579
|
+
- spec/unit/service_exception_inspectors/http_spec.rb
|
580
|
+
- spec/unit/shell_out_spec.rb
|
581
|
+
homepage: https://www.chef.io/
|
582
|
+
licenses:
|
583
|
+
- Apache-2.0
|
584
|
+
metadata: {}
|
585
|
+
post_install_message:
|
586
|
+
rdoc_options: []
|
587
|
+
require_paths:
|
588
|
+
- lib
|
589
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
590
|
+
requirements:
|
591
|
+
- - ">="
|
592
|
+
- !ruby/object:Gem::Version
|
593
|
+
version: '2.5'
|
594
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
595
|
+
requirements:
|
596
|
+
- - ">="
|
597
|
+
- !ruby/object:Gem::Version
|
598
|
+
version: '0'
|
599
|
+
requirements: []
|
600
|
+
rubygems_version: 3.0.3
|
601
|
+
signing_key:
|
602
|
+
specification_version: 4
|
603
|
+
summary: A streamlined development and deployment workflow for Chef platform.
|
604
|
+
test_files:
|
605
|
+
- spec/shared/a_file_generator.rb
|
606
|
+
- spec/shared/a_generated_file.rb
|
607
|
+
- spec/shared/command_with_ui_object.rb
|
608
|
+
- spec/shared/custom_generator_cookbook.rb
|
609
|
+
- spec/shared/fixture_cookbook_checksums.rb
|
610
|
+
- spec/shared/setup_git_committer_config.rb
|
611
|
+
- spec/shared/setup_git_cookbooks.rb
|
612
|
+
- spec/spec_helper.rb
|
613
|
+
- spec/test_helpers.rb
|
614
|
+
- spec/unit/chef_runner_spec.rb
|
615
|
+
- spec/unit/chef_server_api_multi_spec.rb
|
616
|
+
- spec/unit/cli_spec.rb
|
617
|
+
- spec/unit/command/base_spec.rb
|
618
|
+
- spec/unit/command/clean_policy_cookbooks_spec.rb
|
619
|
+
- spec/unit/command/clean_policy_revisions_spec.rb
|
620
|
+
- spec/unit/command/delete_policy_group_spec.rb
|
621
|
+
- spec/unit/command/delete_policy_spec.rb
|
622
|
+
- spec/unit/command/diff_spec.rb
|
623
|
+
- spec/unit/command/env_spec.rb
|
624
|
+
- spec/unit/command/exec_spec.rb
|
625
|
+
- spec/unit/command/export_spec.rb
|
626
|
+
- spec/unit/command/generate_spec.rb
|
627
|
+
- spec/unit/command/generator_commands/attribute_spec.rb
|
628
|
+
- spec/unit/command/generator_commands/base_spec.rb
|
629
|
+
- spec/unit/command/generator_commands/build_cookbook_spec.rb
|
630
|
+
- spec/unit/command/generator_commands/chef_exts/generator_desc_resource_spec.rb
|
631
|
+
- spec/unit/command/generator_commands/chef_exts/recipe_dsl_ext_spec.rb
|
632
|
+
- spec/unit/command/generator_commands/cookbook_file_spec.rb
|
633
|
+
- spec/unit/command/generator_commands/cookbook_spec.rb
|
634
|
+
- spec/unit/command/generator_commands/generator_generator_spec.rb
|
635
|
+
- spec/unit/command/generator_commands/helpers_spec.rb
|
636
|
+
- spec/unit/command/generator_commands/policyfile_spec.rb
|
637
|
+
- spec/unit/command/generator_commands/recipe_spec.rb
|
638
|
+
- spec/unit/command/generator_commands/repo_spec.rb
|
639
|
+
- spec/unit/command/generator_commands/resource_spec.rb
|
640
|
+
- spec/unit/command/generator_commands/template_spec.rb
|
641
|
+
- spec/unit/command/install_spec.rb
|
642
|
+
- spec/unit/command/push_archive_spec.rb
|
643
|
+
- spec/unit/command/push_spec.rb
|
644
|
+
- spec/unit/command/shell_init_spec.rb
|
645
|
+
- spec/unit/command/show_policy_spec.rb
|
646
|
+
- spec/unit/command/undelete_spec.rb
|
647
|
+
- spec/unit/command/update_spec.rb
|
648
|
+
- spec/unit/command/verify_spec.rb
|
649
|
+
- spec/unit/commands_map_spec.rb
|
650
|
+
- spec/unit/component_test_spec.rb
|
651
|
+
- spec/unit/configurable_spec.rb
|
652
|
+
- spec/unit/cookbook_metadata_spec.rb
|
653
|
+
- spec/unit/cookbook_profiler/git_spec.rb
|
654
|
+
- spec/unit/cookbook_profiler/identifiers_spec.rb
|
655
|
+
- spec/unit/fixtures/chef-runner-cookbooks/test_cookbook/recipes/recipe_one.rb
|
656
|
+
- spec/unit/fixtures/chef-runner-cookbooks/test_cookbook/recipes/recipe_two.rb
|
657
|
+
- spec/unit/fixtures/command/cli_test_command.rb
|
658
|
+
- spec/unit/fixtures/command/explicit_path_example.rb
|
659
|
+
- spec/unit/fixtures/configurable/test_config_loader.rb
|
660
|
+
- spec/unit/fixtures/configurable/test_configurable.rb
|
661
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/.kitchen.yml
|
662
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/Berksfile
|
663
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/README.md
|
664
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/chefignore
|
665
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/metadata.rb
|
666
|
+
- spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/recipes/default.rb
|
667
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/.kitchen.yml
|
668
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/Berksfile
|
669
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/README.md
|
670
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/chefignore
|
671
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/metadata.rb
|
672
|
+
- spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/recipes/default.rb
|
673
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/Berksfile
|
674
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/README.md
|
675
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/chefignore
|
676
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/kitchen.yml
|
677
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/metadata.rb
|
678
|
+
- spec/unit/fixtures/cookbook_cache/foo-1.0.0/recipes/default.rb
|
679
|
+
- spec/unit/fixtures/cookbooks_api/chef_server_universe.json
|
680
|
+
- spec/unit/fixtures/cookbooks_api/pruned_chef_server_universe.json
|
681
|
+
- spec/unit/fixtures/cookbooks_api/pruned_small_universe.json
|
682
|
+
- spec/unit/fixtures/cookbooks_api/small_universe.json
|
683
|
+
- spec/unit/fixtures/cookbooks_api/universe.json
|
684
|
+
- spec/unit/fixtures/cookbooks_api/update_fixtures.rb
|
685
|
+
- spec/unit/fixtures/dev_cookbooks/README.md
|
686
|
+
- spec/unit/fixtures/dev_cookbooks/bar-cookbook.gitbundle
|
687
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_apps/bin/.keep
|
688
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_apps/embedded/.keep
|
689
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_apps/embedded/bin/.keep
|
690
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/bin/.keep
|
691
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/apps/berkshelf/.keep
|
692
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/apps/test-kitchen/.keep
|
693
|
+
- spec/unit/fixtures/eg_omnibus_dir/missing_component/embedded/bin/.keep
|
694
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/bin/.keep
|
695
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/berkshelf/integration_test
|
696
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/berkshelf/verify_me
|
697
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/chef-dk/.keep
|
698
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/chef/verify_me
|
699
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/test-kitchen/verify_me
|
700
|
+
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/bin/.keep
|
701
|
+
- spec/unit/fixtures/example_app/Policyfile.rb
|
702
|
+
- spec/unit/fixtures/example_cookbook/.gitignore
|
703
|
+
- spec/unit/fixtures/example_cookbook/.kitchen.yml
|
704
|
+
- spec/unit/fixtures/example_cookbook/Berksfile
|
705
|
+
- spec/unit/fixtures/example_cookbook/README.md
|
706
|
+
- spec/unit/fixtures/example_cookbook/chefignore
|
707
|
+
- spec/unit/fixtures/example_cookbook/metadata.rb
|
708
|
+
- spec/unit/fixtures/example_cookbook/recipes/default.rb
|
709
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.gitignore
|
710
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.kitchen.yml
|
711
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/Berksfile
|
712
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/README.md
|
713
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/chefignore
|
714
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/metadata.json
|
715
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/recipes/default.rb
|
716
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.gitignore
|
717
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.kitchen.yml
|
718
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/Berksfile
|
719
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/README.md
|
720
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/chefignore
|
721
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/recipes/default.rb
|
722
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/README.md
|
723
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/chefignore
|
724
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/metadata.rb
|
725
|
+
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/recipes/default.rb
|
726
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/Berksfile
|
727
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/README.md
|
728
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/chefignore
|
729
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/metadata.rb
|
730
|
+
- spec/unit/fixtures/local_path_cookbooks/cookbook-with-a-dep/recipes/default.rb
|
731
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/.kitchen.yml
|
732
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/Berksfile
|
733
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/README.md
|
734
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/chefignore
|
735
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/extra/extra_file.txt
|
736
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/metadata.rb
|
737
|
+
- spec/unit/fixtures/local_path_cookbooks/local-cookbook/recipes/default.rb
|
738
|
+
- spec/unit/fixtures/local_path_cookbooks/metadata-missing/README.md
|
739
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/.kitchen.yml
|
740
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/README.md
|
741
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/metadata.rb
|
742
|
+
- spec/unit/fixtures/local_path_cookbooks/noignore-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/recipes/default.rb
|
743
|
+
- spec/unit/generator_spec.rb
|
744
|
+
- spec/unit/pager_spec.rb
|
745
|
+
- spec/unit/policyfile/artifactory_cookbook_source_spec.rb
|
746
|
+
- spec/unit/policyfile/attribute_merge_checker_spec.rb
|
747
|
+
- spec/unit/policyfile/chef_repo_cookbook_source_spec.rb
|
748
|
+
- spec/unit/policyfile/chef_server_cookbook_source_spec.rb
|
749
|
+
- spec/unit/policyfile/chef_server_lock_fetcher_spec.rb
|
750
|
+
- spec/unit/policyfile/community_cookbook_source_spec.rb
|
751
|
+
- spec/unit/policyfile/comparison_base_spec.rb
|
752
|
+
- spec/unit/policyfile/cookbook_location_specification_spec.rb
|
753
|
+
- spec/unit/policyfile/cookbook_locks_spec.rb
|
754
|
+
- spec/unit/policyfile/delivery_supermarket_source_spec.rb
|
755
|
+
- spec/unit/policyfile/differ_spec.rb
|
756
|
+
- spec/unit/policyfile/git_lock_fetcher_spec.rb
|
757
|
+
- spec/unit/policyfile/included_policies_cookbook_source_spec.rb
|
758
|
+
- spec/unit/policyfile/lister_spec.rb
|
759
|
+
- spec/unit/policyfile/local_lock_fetcher_spec.rb
|
760
|
+
- spec/unit/policyfile/lock_applier_spec.rb
|
761
|
+
- spec/unit/policyfile/lock_fetcher_mixin_spec.rb
|
762
|
+
- spec/unit/policyfile/null_cookbook_source_spec.rb
|
763
|
+
- spec/unit/policyfile/read_cookbook_for_compat_mode_upload_spec.rb
|
764
|
+
- spec/unit/policyfile/remote_lock_fetcher_spec.rb
|
765
|
+
- spec/unit/policyfile/reports/install_spec.rb
|
766
|
+
- spec/unit/policyfile/reports/upload_spec.rb
|
767
|
+
- spec/unit/policyfile/solution_dependencies_spec.rb
|
768
|
+
- spec/unit/policyfile/source_uri_spec.rb
|
769
|
+
- spec/unit/policyfile/storage_config_spec.rb
|
770
|
+
- spec/unit/policyfile/undo_record_spec.rb
|
771
|
+
- spec/unit/policyfile/undo_stack_spec.rb
|
772
|
+
- spec/unit/policyfile/uploader_spec.rb
|
773
|
+
- spec/unit/policyfile_demands_spec.rb
|
774
|
+
- spec/unit/policyfile_evaluation_spec.rb
|
775
|
+
- spec/unit/policyfile_includes_dsl_spec.rb
|
776
|
+
- spec/unit/policyfile_includes_spec.rb
|
777
|
+
- spec/unit/policyfile_install_with_includes_spec.rb
|
778
|
+
- spec/unit/policyfile_lock_build_spec.rb
|
779
|
+
- spec/unit/policyfile_lock_install_spec.rb
|
780
|
+
- spec/unit/policyfile_lock_serialization_spec.rb
|
781
|
+
- spec/unit/policyfile_lock_validation_spec.rb
|
782
|
+
- spec/unit/policyfile_services/clean_policies_spec.rb
|
783
|
+
- spec/unit/policyfile_services/clean_policy_cookbooks_spec.rb
|
784
|
+
- spec/unit/policyfile_services/export_repo_spec.rb
|
785
|
+
- spec/unit/policyfile_services/install_spec.rb
|
786
|
+
- spec/unit/policyfile_services/push_archive_spec.rb
|
787
|
+
- spec/unit/policyfile_services/push_spec.rb
|
788
|
+
- spec/unit/policyfile_services/rm_policy_group_spec.rb
|
789
|
+
- spec/unit/policyfile_services/rm_policy_spec.rb
|
790
|
+
- spec/unit/policyfile_services/show_policy_spec.rb
|
791
|
+
- spec/unit/policyfile_services/undelete_spec.rb
|
792
|
+
- spec/unit/policyfile_services/update_attributes_spec.rb
|
793
|
+
- spec/unit/policyfile_services/update_spec.rb
|
794
|
+
- spec/unit/service_exception_inspectors/base_spec.rb
|
795
|
+
- spec/unit/service_exception_inspectors/http_spec.rb
|
796
|
+
- spec/unit/shell_out_spec.rb
|