knife 19.0.102 → 19.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Rakefile +12 -14
- data/knife.gemspec +6 -6
- data/lib/chef/application/knife.rb +1 -1
- data/lib/chef/chef_fs/knife.rb +1 -1
- data/lib/chef/knife/acl_add.rb +1 -1
- data/lib/chef/knife/acl_base.rb +1 -1
- data/lib/chef/knife/acl_bulk_add.rb +1 -1
- data/lib/chef/knife/acl_bulk_remove.rb +1 -1
- data/lib/chef/knife/acl_remove.rb +1 -1
- data/lib/chef/knife/acl_show.rb +1 -1
- data/lib/chef/knife/bootstrap/chef_vault_handler.rb +1 -1
- data/lib/chef/knife/bootstrap/client_builder.rb +1 -1
- data/lib/chef/knife/bootstrap/templates/windows-chef-client-msi.erb +1 -1
- data/lib/chef/knife/bootstrap/train_connector.rb +1 -1
- data/lib/chef/knife/bootstrap.rb +1 -1
- data/lib/chef/knife/client_bulk_delete.rb +1 -1
- data/lib/chef/knife/client_create.rb +1 -1
- data/lib/chef/knife/client_delete.rb +1 -1
- data/lib/chef/knife/client_edit.rb +1 -1
- data/lib/chef/knife/client_key_create.rb +1 -1
- data/lib/chef/knife/client_key_delete.rb +1 -1
- data/lib/chef/knife/client_key_edit.rb +1 -1
- data/lib/chef/knife/client_key_list.rb +1 -1
- data/lib/chef/knife/client_key_show.rb +1 -1
- data/lib/chef/knife/client_list.rb +1 -1
- data/lib/chef/knife/client_reregister.rb +1 -1
- data/lib/chef/knife/client_show.rb +1 -1
- data/lib/chef/knife/config_show.rb +1 -1
- data/lib/chef/knife/config_use.rb +1 -1
- data/lib/chef/knife/configure.rb +1 -1
- data/lib/chef/knife/configure_client.rb +1 -1
- data/lib/chef/knife/cookbook_bulk_delete.rb +1 -1
- data/lib/chef/knife/cookbook_delete.rb +1 -1
- data/lib/chef/knife/cookbook_download.rb +1 -1
- data/lib/chef/knife/cookbook_list.rb +1 -1
- data/lib/chef/knife/cookbook_metadata.rb +1 -1
- data/lib/chef/knife/cookbook_metadata_from_file.rb +1 -1
- data/lib/chef/knife/cookbook_show.rb +1 -1
- data/lib/chef/knife/cookbook_upload.rb +1 -1
- data/lib/chef/knife/core/bootstrap_context.rb +1 -1
- data/lib/chef/knife/core/cookbook_scm_repo.rb +1 -1
- data/lib/chef/knife/core/cookbook_site_streaming_uploader.rb +1 -1
- data/lib/chef/knife/core/formatting_options.rb +1 -1
- data/lib/chef/knife/core/gem_glob_loader.rb +1 -1
- data/lib/chef/knife/core/generic_presenter.rb +1 -1
- data/lib/chef/knife/core/hashed_command_loader.rb +1 -1
- data/lib/chef/knife/core/node_editor.rb +1 -1
- data/lib/chef/knife/core/node_presenter.rb +1 -1
- data/lib/chef/knife/core/object_loader.rb +1 -1
- data/lib/chef/knife/core/status_presenter.rb +1 -1
- data/lib/chef/knife/core/subcommand_loader.rb +1 -1
- data/lib/chef/knife/core/text_formatter.rb +1 -1
- data/lib/chef/knife/core/ui.rb +2 -2
- data/lib/chef/knife/core/windows_bootstrap_context.rb +1 -1
- data/lib/chef/knife/data_bag_create.rb +1 -1
- data/lib/chef/knife/data_bag_delete.rb +1 -1
- data/lib/chef/knife/data_bag_edit.rb +1 -1
- data/lib/chef/knife/data_bag_from_file.rb +1 -1
- data/lib/chef/knife/data_bag_list.rb +1 -1
- data/lib/chef/knife/data_bag_secret_options.rb +1 -1
- data/lib/chef/knife/data_bag_show.rb +1 -1
- data/lib/chef/knife/edit.rb +1 -1
- data/lib/chef/knife/environment_create.rb +1 -1
- data/lib/chef/knife/environment_delete.rb +1 -1
- data/lib/chef/knife/environment_edit.rb +1 -1
- data/lib/chef/knife/environment_from_file.rb +1 -1
- data/lib/chef/knife/environment_list.rb +1 -1
- data/lib/chef/knife/environment_show.rb +1 -1
- data/lib/chef/knife/exec.rb +1 -1
- data/lib/chef/knife/group_add.rb +1 -1
- data/lib/chef/knife/group_create.rb +1 -1
- data/lib/chef/knife/group_destroy.rb +1 -1
- data/lib/chef/knife/group_list.rb +1 -1
- data/lib/chef/knife/group_remove.rb +1 -1
- data/lib/chef/knife/group_show.rb +1 -1
- data/lib/chef/knife/key_create.rb +1 -1
- data/lib/chef/knife/key_create_base.rb +1 -1
- data/lib/chef/knife/key_delete.rb +1 -1
- data/lib/chef/knife/key_edit.rb +1 -1
- data/lib/chef/knife/key_edit_base.rb +1 -1
- data/lib/chef/knife/key_list.rb +1 -1
- data/lib/chef/knife/key_list_base.rb +1 -1
- data/lib/chef/knife/key_show.rb +1 -1
- data/lib/chef/knife/license.rb +1 -1
- data/lib/chef/knife/node_bulk_delete.rb +1 -1
- data/lib/chef/knife/node_create.rb +1 -1
- data/lib/chef/knife/node_delete.rb +1 -1
- data/lib/chef/knife/node_edit.rb +1 -1
- data/lib/chef/knife/node_from_file.rb +1 -1
- data/lib/chef/knife/node_list.rb +1 -1
- data/lib/chef/knife/node_policy_set.rb +1 -1
- data/lib/chef/knife/node_run_list_add.rb +1 -1
- data/lib/chef/knife/node_run_list_remove.rb +1 -1
- data/lib/chef/knife/node_show.rb +1 -1
- data/lib/chef/knife/org_create.rb +1 -1
- data/lib/chef/knife/org_delete.rb +1 -1
- data/lib/chef/knife/org_edit.rb +1 -1
- data/lib/chef/knife/org_list.rb +1 -1
- data/lib/chef/knife/org_show.rb +1 -1
- data/lib/chef/knife/org_user_add.rb +1 -1
- data/lib/chef/knife/org_user_remove.rb +1 -1
- data/lib/chef/knife/recipe_list.rb +1 -1
- data/lib/chef/knife/rehash.rb +1 -1
- data/lib/chef/knife/role_bulk_delete.rb +1 -1
- data/lib/chef/knife/role_create.rb +1 -1
- data/lib/chef/knife/role_delete.rb +1 -1
- data/lib/chef/knife/role_edit.rb +1 -1
- data/lib/chef/knife/role_env_run_list_add.rb +1 -1
- data/lib/chef/knife/role_env_run_list_remove.rb +1 -1
- data/lib/chef/knife/role_env_run_list_replace.rb +1 -1
- data/lib/chef/knife/role_from_file.rb +1 -1
- data/lib/chef/knife/role_list.rb +1 -1
- data/lib/chef/knife/role_run_list_add.rb +1 -1
- data/lib/chef/knife/role_run_list_remove.rb +1 -1
- data/lib/chef/knife/role_run_list_replace.rb +1 -1
- data/lib/chef/knife/role_show.rb +1 -1
- data/lib/chef/knife/search.rb +1 -1
- data/lib/chef/knife/ssh.rb +1 -1
- data/lib/chef/knife/ssl_check.rb +1 -1
- data/lib/chef/knife/ssl_fetch.rb +1 -1
- data/lib/chef/knife/supermarket_download.rb +1 -1
- data/lib/chef/knife/supermarket_install.rb +1 -1
- data/lib/chef/knife/supermarket_list.rb +1 -1
- data/lib/chef/knife/supermarket_search.rb +1 -1
- data/lib/chef/knife/supermarket_share.rb +1 -1
- data/lib/chef/knife/supermarket_show.rb +1 -1
- data/lib/chef/knife/supermarket_unshare.rb +1 -1
- data/lib/chef/knife/user_create.rb +1 -1
- data/lib/chef/knife/user_delete.rb +1 -1
- data/lib/chef/knife/user_dissociate.rb +1 -1
- data/lib/chef/knife/user_edit.rb +2 -2
- data/lib/chef/knife/user_invite_add.rb +1 -1
- data/lib/chef/knife/user_invite_list.rb +1 -1
- data/lib/chef/knife/user_invite_rescind.rb +1 -1
- data/lib/chef/knife/user_key_create.rb +1 -1
- data/lib/chef/knife/user_key_delete.rb +1 -1
- data/lib/chef/knife/user_key_edit.rb +1 -1
- data/lib/chef/knife/user_key_list.rb +1 -1
- data/lib/chef/knife/user_key_show.rb +1 -1
- data/lib/chef/knife/user_list.rb +1 -1
- data/lib/chef/knife/user_password.rb +1 -1
- data/lib/chef/knife/user_reregister.rb +1 -1
- data/lib/chef/knife/user_show.rb +1 -1
- data/lib/chef/knife/version.rb +2 -2
- data/lib/chef/knife/yaml_convert.rb +1 -1
- data/lib/chef/knife.rb +27 -11
- data/spec/data/bad-config.rb +1 -1
- data/spec/data/cb_version_cookbooks/tatft/README.rdoc +1 -1
- data/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb +1 -1
- data/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb +1 -1
- data/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb +1 -1
- data/spec/data/cb_version_cookbooks/tatft/recipes/default.rb +1 -1
- data/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb +1 -1
- data/spec/data/checksum/random.txt +1 -1
- data/spec/data/config.rb +0 -1
- data/spec/data/cookbooks/apache2/recipes/default.rb +1 -1
- data/spec/data/cookbooks/borken/recipes/default.rb +1 -1
- data/spec/data/cookbooks/borken/templates/default/borken.erb +1 -1
- data/spec/data/cookbooks/ignorken/recipes/default.rb +1 -1
- data/spec/data/cookbooks/ignorken/recipes/ignoreme.rb +1 -1
- data/spec/data/cookbooks/java/files/default/java.response +1 -1
- data/spec/data/cookbooks/name-mismatch-versionnumber/README.md +0 -1
- data/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb +0 -1
- data/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa +1 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt +1 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt +1 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt +1 -1
- data/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt +1 -1
- data/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb +1 -1
- data/spec/data/cookbooks/starter/files/sample.txt +1 -1
- data/spec/data/definitions/test.rb +1 -1
- data/spec/data/environment-config.rb +1 -1
- data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md +0 -1
- data/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb +0 -1
- data/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md +0 -1
- data/spec/data/kitchen/openldap/attributes/robinson.rb +1 -1
- data/spec/data/kitchen/openldap/definitions/drewbarrymore.rb +1 -1
- data/spec/data/kitchen/openldap/recipes/gigantor.rb +1 -1
- data/spec/data/kitchen/openldap/recipes/ignoreme.rb +1 -1
- data/spec/data/knife_subcommand/test_explicit_category.rb +1 -1
- data/spec/data/remote_directory_data/remote_dir_file.txt +1 -1
- data/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt +1 -1
- data/spec/data/rubygems.org/nonexistent_gem-info +1 -1
- data/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb +0 -1
- data/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb +0 -1
- data/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb +0 -1
- data/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb +0 -1
- data/spec/data/run_context/cookbooks/test/recipes/default.rb +0 -2
- data/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb +0 -1
- data/spec/data/sample_msu1.xml +0 -1
- data/spec/data/sample_msu2.xml +0 -1
- data/spec/data/sample_msu3.xml +0 -1
- data/spec/data/standalone_cookbook/Gemfile +1 -1
- data/spec/data/standalone_cookbook/recipes/default.rb +1 -1
- data/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb +1 -1
- data/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt +1 -1
- data/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt +1 -1
- data/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt +1 -1
- data/spec/data/templates/seattle.txt +1 -1
- data/spec/functional/configure_spec.rb +1 -1
- data/spec/functional/cookbook_delete_spec.rb +1 -1
- data/spec/functional/exec_spec.rb +1 -1
- data/spec/functional/rehash_spec.rb +1 -1
- data/spec/functional/smoke_test.rb +1 -1
- data/spec/functional/ssh_spec.rb +1 -1
- data/spec/functional/version_spec.rb +1 -1
- data/spec/integration/chef_fs_data_store_spec.rb +1 -1
- data/spec/integration/chef_repo_path_spec.rb +1 -1
- data/spec/integration/chef_repository_file_system_spec.rb +1 -1
- data/spec/integration/chefignore_spec.rb +1 -1
- data/spec/integration/client_bulk_delete_spec.rb +1 -1
- data/spec/integration/client_create_spec.rb +1 -1
- data/spec/integration/client_delete_spec.rb +1 -1
- data/spec/integration/client_key_create_spec.rb +1 -1
- data/spec/integration/client_key_delete_spec.rb +1 -1
- data/spec/integration/client_key_list_spec.rb +1 -1
- data/spec/integration/client_key_show_spec.rb +1 -1
- data/spec/integration/client_list_spec.rb +1 -1
- data/spec/integration/client_show_spec.rb +1 -1
- data/spec/integration/commands_spec.rb +1 -1
- data/spec/integration/common_options_spec.rb +1 -1
- data/spec/integration/cookbook_api_ipv6_spec.rb +1 -1
- data/spec/integration/cookbook_bulk_delete_spec.rb +1 -1
- data/spec/integration/cookbook_download_spec.rb +1 -1
- data/spec/integration/cookbook_list_spec.rb +1 -1
- data/spec/integration/cookbook_show_spec.rb +1 -1
- data/spec/integration/cookbook_upload_spec.rb +1 -1
- data/spec/integration/data_bag_create_spec.rb +1 -1
- data/spec/integration/data_bag_delete_spec.rb +1 -1
- data/spec/integration/data_bag_edit_spec.rb +1 -1
- data/spec/integration/data_bag_from_file_spec.rb +1 -1
- data/spec/integration/data_bag_list_spec.rb +1 -1
- data/spec/integration/data_bag_show_spec.rb +1 -1
- data/spec/integration/delete_spec.rb +1 -1
- data/spec/integration/deps_spec.rb +1 -1
- data/spec/integration/diff_spec.rb +1 -1
- data/spec/integration/download_spec.rb +1 -1
- data/spec/integration/environment_compare_spec.rb +1 -1
- data/spec/integration/environment_create_spec.rb +1 -1
- data/spec/integration/environment_delete_spec.rb +1 -1
- data/spec/integration/environment_from_file_spec.rb +1 -1
- data/spec/integration/environment_list_spec.rb +1 -1
- data/spec/integration/environment_show_spec.rb +1 -1
- data/spec/integration/list_spec.rb +1 -1
- data/spec/integration/node_bulk_delete_spec.rb +1 -1
- data/spec/integration/node_create_spec.rb +1 -1
- data/spec/integration/node_delete_spec.rb +1 -1
- data/spec/integration/node_environment_set_spec.rb +1 -1
- data/spec/integration/node_from_file_spec.rb +1 -1
- data/spec/integration/node_list_spec.rb +1 -1
- data/spec/integration/node_run_list_add_spec.rb +1 -1
- data/spec/integration/node_run_list_remove_spec.rb +1 -1
- data/spec/integration/node_run_list_set_spec.rb +1 -1
- data/spec/integration/node_show_spec.rb +1 -1
- data/spec/integration/raw_spec.rb +1 -1
- data/spec/integration/redirection_spec.rb +1 -1
- data/spec/integration/role_bulk_delete_spec.rb +1 -1
- data/spec/integration/role_create_spec.rb +1 -1
- data/spec/integration/role_delete_spec.rb +1 -1
- data/spec/integration/role_from_file_spec.rb +1 -1
- data/spec/integration/role_list_spec.rb +1 -1
- data/spec/integration/role_show_spec.rb +1 -1
- data/spec/integration/search_node_spec.rb +1 -1
- data/spec/integration/serve_spec.rb +1 -1
- data/spec/integration/show_spec.rb +1 -1
- data/spec/integration/upload_spec.rb +1 -1
- data/spec/knife_spec_helper.rb +2 -2
- data/spec/support/chef_helpers.rb +1 -1
- data/spec/support/key_helpers.rb +1 -1
- data/spec/support/platforms/prof/gc.rb +1 -1
- data/spec/support/platforms/prof/win32.rb +1 -1
- data/spec/support/platforms/win32/spec_service.rb +1 -1
- data/spec/support/shared/functional/knife.rb +1 -1
- data/spec/support/shared/integration/integration_helper.rb +1 -1
- data/spec/support/shared/integration/knife_support.rb +1 -1
- data/spec/support/shared/unit/knife_shared.rb +1 -1
- data/spec/tiny_server.rb +1 -1
- data/spec/unit/application/knife_spec.rb +1 -1
- data/spec/unit/knife/bootstrap/chef_vault_handler_spec.rb +1 -1
- data/spec/unit/knife/bootstrap/client_builder_spec.rb +1 -1
- data/spec/unit/knife/bootstrap/templates/windows_presigned_url_spec.rb +1 -1
- data/spec/unit/knife/bootstrap/train_connector_spec.rb +1 -1
- data/spec/unit/knife/bootstrap_chef19_spec.rb +1 -1
- data/spec/unit/knife/bootstrap_spec.rb +1 -1
- data/spec/unit/knife/client_bulk_delete_spec.rb +1 -1
- data/spec/unit/knife/client_create_spec.rb +1 -1
- data/spec/unit/knife/configure_spec.rb +5 -3
- data/spec/unit/knife/cookbook_bulk_delete_spec.rb +1 -1
- data/spec/unit/knife/cookbook_metadata_from_file_spec.rb +2 -2
- data/spec/unit/knife/cookbook_show_spec.rb +1 -1
- data/spec/unit/knife/cookbook_upload_spec.rb +1 -1
- data/spec/unit/knife/core/bootstrap_context_spec.rb +1 -1
- data/spec/unit/knife/core/cookbook_scm_repo_spec.rb +1 -1
- data/spec/unit/knife/core/gem_glob_loader_spec.rb +1 -1
- data/spec/unit/knife/core/hashed_command_loader_spec.rb +1 -1
- data/spec/unit/knife/core/node_editor_spec.rb +1 -1
- data/spec/unit/knife/core/object_loader_spec.rb +1 -1
- data/spec/unit/knife/core/status_presenter_spec.rb +1 -1
- data/spec/unit/knife/core/subcommand_loader_spec.rb +1 -1
- data/spec/unit/knife/core/ui_spec.rb +1 -1
- data/spec/unit/knife/core/windows_bootstrap_context_chef19_spec.rb +1 -1
- data/spec/unit/knife/core/windows_bootstrap_context_spec.rb +1 -1
- data/spec/unit/knife/data_bag_create_spec.rb +1 -1
- data/spec/unit/knife/data_bag_edit_spec.rb +1 -1
- data/spec/unit/knife/data_bag_from_file_spec.rb +1 -1
- data/spec/unit/knife/data_bag_secret_options_spec.rb +1 -1
- data/spec/unit/knife/data_bag_show_spec.rb +1 -1
- data/spec/unit/knife/environment_create_spec.rb +1 -1
- data/spec/unit/knife/environment_delete_spec.rb +1 -1
- data/spec/unit/knife/environment_edit_spec.rb +1 -1
- data/spec/unit/knife/environment_from_file_spec.rb +1 -1
- data/spec/unit/knife/environment_list_spec.rb +1 -1
- data/spec/unit/knife/environment_show_spec.rb +1 -1
- data/spec/unit/knife/key_create_spec.rb +1 -1
- data/spec/unit/knife/key_delete_spec.rb +1 -1
- data/spec/unit/knife/key_edit_spec.rb +1 -1
- data/spec/unit/knife/key_helper.rb +1 -1
- data/spec/unit/knife/key_list_spec.rb +1 -1
- data/spec/unit/knife/key_show_spec.rb +1 -1
- data/spec/unit/knife/license_spec.rb +1 -1
- data/spec/unit/knife/node_bulk_delete_spec.rb +1 -1
- data/spec/unit/knife/node_delete_spec.rb +1 -1
- data/spec/unit/knife/node_edit_spec.rb +1 -1
- data/spec/unit/knife/node_from_file_spec.rb +1 -1
- data/spec/unit/knife/node_list_spec.rb +1 -1
- data/spec/unit/knife/node_policy_set_spec.rb +1 -1
- data/spec/unit/knife/node_run_list_add_spec.rb +1 -1
- data/spec/unit/knife/node_run_list_remove_spec.rb +1 -1
- data/spec/unit/knife/node_show_spec.rb +1 -1
- data/spec/unit/knife/org_create_spec.rb +1 -1
- data/spec/unit/knife/org_delete_spec.rb +1 -1
- data/spec/unit/knife/org_edit_spec.rb +1 -1
- data/spec/unit/knife/org_list_spec.rb +1 -1
- data/spec/unit/knife/org_show_spec.rb +1 -1
- data/spec/unit/knife/org_user_add_spec.rb +1 -1
- data/spec/unit/knife/raw_spec.rb +1 -1
- data/spec/unit/knife/role_bulk_delete_spec.rb +1 -1
- data/spec/unit/knife/role_create_spec.rb +1 -1
- data/spec/unit/knife/role_delete_spec.rb +1 -1
- data/spec/unit/knife/role_edit_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_add_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_clear_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_remove_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_replace_spec.rb +1 -1
- data/spec/unit/knife/role_env_run_list_set_spec.rb +1 -1
- data/spec/unit/knife/role_from_file_spec.rb +1 -1
- data/spec/unit/knife/role_list_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_add_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_clear_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_remove_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_replace_spec.rb +1 -1
- data/spec/unit/knife/role_run_list_set_spec.rb +1 -1
- data/spec/unit/knife/search_spec.rb +1 -1
- data/spec/unit/knife/ssh_spec.rb +1 -1
- data/spec/unit/knife/ssl_check_spec.rb +1 -1
- data/spec/unit/knife/ssl_fetch_spec.rb +1 -1
- data/spec/unit/knife/status_spec.rb +1 -1
- data/spec/unit/knife/supermarket_download_spec.rb +1 -1
- data/spec/unit/knife/supermarket_install_spec.rb +1 -1
- data/spec/unit/knife/supermarket_list_spec.rb +1 -1
- data/spec/unit/knife/supermarket_search_spec.rb +1 -1
- data/spec/unit/knife/supermarket_share_spec.rb +1 -1
- data/spec/unit/knife/supermarket_unshare_spec.rb +1 -1
- data/spec/unit/knife/user_create_spec.rb +1 -1
- data/spec/unit/knife/user_delete_spec.rb +1 -1
- data/spec/unit/knife/user_edit_spec.rb +1 -1
- data/spec/unit/knife/user_list_spec.rb +1 -1
- data/spec/unit/knife/user_password_spec.rb +1 -1
- data/spec/unit/knife/user_reregister_spec.rb +1 -1
- data/spec/unit/knife/user_show_spec.rb +1 -1
- data/spec/unit/knife/utils/licensing_handler_chef19_spec.rb +1 -1
- data/spec/unit/knife_spec.rb +63 -1
- metadata +15 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Stephen Delano (<stephen@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Will Albenzi (<walbenzi@gmail.com>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Ashique Saidalavi (<ashique.saidalavi@progress.com>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
data/spec/unit/knife/ssh_spec.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Bryan McLellan <btm@chef.io>
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Daniel DeLeo (<dan@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Daniel DeLeo (<dan@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Sahil Muthoo (<sahil.muthoo@gmail.com>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Thomas Bishop (<bishop.thomas@gmail.com>)
|
|
3
3
|
# Copyright:: Copyright 2012-2016, Thomas Bishop
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna (<steve@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Vivek Singh (<vivek.singh@msystechnologies.com>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Vivek Singh (<vivek.singh@msystechnologies.com>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Stephen Delano (<stephen@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Stephen Delano (<stephen@chef.io>)
|
|
3
3
|
# Author:: Tim Hinderliter (<tim@chef.io>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna (<steve@chef.io>)
|
|
3
3
|
# Author:: Tyler Cloke (<tyler@chef.io>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna (<steve@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna (<steve@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Snehal Dwivedi (<sdwivedi@msystechnologies.com>)
|
|
3
|
-
# Copyright:: Copyright
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna (<steve@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Steven Danna (<steve@chef.io>)
|
|
3
|
-
# Copyright:: Copyright (c)
|
|
3
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
4
4
|
# License:: Apache License, Version 2.0
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright:: Copyright (c)
|
|
2
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
3
3
|
# License:: Apache License, Version 2.0
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
data/spec/unit/knife_spec.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# Author:: Adam Jacob (<adam@chef.io>)
|
|
3
3
|
# Author:: Tim Hinderliter (<tim@chef.io>)
|
|
4
|
-
# Copyright:: Copyright (c)
|
|
4
|
+
# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
|
|
5
5
|
# License:: Apache License, Version 2.0
|
|
6
6
|
#
|
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -158,6 +158,68 @@ describe Chef::Knife do
|
|
|
158
158
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
describe "subdirectory subcommand filtering" do
|
|
162
|
+
before do
|
|
163
|
+
Chef::Knife.reset_subcommands!
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
after do
|
|
167
|
+
%i{CloudSubdirCommand FlatKnifeCommand HabitatKnifeCommand CheffsSubdirCommand}.each do |const|
|
|
168
|
+
KnifeSpecs.send(:remove_const, const) if KnifeSpecs.const_defined?(const)
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
it "does not register subcommands defined in a subdirectory of lib/chef/knife/" do
|
|
173
|
+
allow(Chef::Knife).to receive(:path_from_caller)
|
|
174
|
+
.and_return("/some/gem/lib/chef/knife/cloud/server/create_command.rb")
|
|
175
|
+
|
|
176
|
+
module KnifeSpecs
|
|
177
|
+
class CloudSubdirCommand < Chef::Knife; end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
expect(Chef::Knife.subcommands).not_to have_key("cloud_subdir_command")
|
|
181
|
+
expect(Chef::Knife.subcommand_files).not_to have_key("cloud_subdir_command")
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
it "registers subcommands defined directly in lib/chef/knife/ (flat path)" do
|
|
185
|
+
allow(Chef::Knife).to receive(:path_from_caller)
|
|
186
|
+
.and_return("/some/gem/lib/chef/knife/flat_knife_command.rb")
|
|
187
|
+
|
|
188
|
+
module KnifeSpecs
|
|
189
|
+
class FlatKnifeCommand < Chef::Knife; end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
expect(Chef::Knife.subcommands).to have_key("flat_knife_command")
|
|
193
|
+
expect(Chef::Knife.subcommand_files["flat_knife_command"]).to eq(["/some/gem/lib/chef/knife/flat_knife_command.rb"])
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
it "does not filter subcommands loaded from Habitat package paths" do
|
|
197
|
+
# Habitat paths contain /chef/knife/ as the package origin/name segment,
|
|
198
|
+
# e.g. /hab/pkgs/chef/knife/19.0.99/lib/chef/knife/foo.rb. The regex must
|
|
199
|
+
# anchor to /lib/chef/knife/ to avoid false positives on these paths.
|
|
200
|
+
allow(Chef::Knife).to receive(:path_from_caller)
|
|
201
|
+
.and_return("/hab/pkgs/chef/knife/19.0.99/lib/chef/knife/habitat_knife_command.rb")
|
|
202
|
+
|
|
203
|
+
module KnifeSpecs
|
|
204
|
+
class HabitatKnifeCommand < Chef::Knife; end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
expect(Chef::Knife.subcommands).to have_key("habitat_knife_command")
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
it "does not register ChefFS-based subcommands defined in subdirectories of lib/chef/knife/" do
|
|
211
|
+
# ChefFS commands use caller[1] for path detection; filtering should still apply.
|
|
212
|
+
allow(Chef::Knife).to receive(:path_from_caller)
|
|
213
|
+
.and_return("/some/gem/lib/chef/knife/cloud/cheffs_subdir_command.rb")
|
|
214
|
+
|
|
215
|
+
module KnifeSpecs
|
|
216
|
+
class CheffsSubdirCommand < Chef::ChefFS::Knife; end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
expect(Chef::Knife.subcommands).not_to have_key("cheffs_subdir_command")
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
161
223
|
describe "the headers include X-Remote-Request-Id" do
|
|
162
224
|
|
|
163
225
|
let(:headers) do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 19.0.
|
|
4
|
+
version: 19.0.128
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Jacob
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: train-core
|
|
@@ -128,16 +128,22 @@ dependencies:
|
|
|
128
128
|
name: ffi-yajl
|
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
|
130
130
|
requirements:
|
|
131
|
-
- - "
|
|
131
|
+
- - ">="
|
|
132
132
|
- !ruby/object:Gem::Version
|
|
133
133
|
version: '2.2'
|
|
134
|
+
- - "<"
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: '4.0'
|
|
134
137
|
type: :runtime
|
|
135
138
|
prerelease: false
|
|
136
139
|
version_requirements: !ruby/object:Gem::Requirement
|
|
137
140
|
requirements:
|
|
138
|
-
- - "
|
|
141
|
+
- - ">="
|
|
139
142
|
- !ruby/object:Gem::Version
|
|
140
143
|
version: '2.2'
|
|
144
|
+
- - "<"
|
|
145
|
+
- !ruby/object:Gem::Version
|
|
146
|
+
version: '4.0'
|
|
141
147
|
- !ruby/object:Gem::Dependency
|
|
142
148
|
name: net-ssh
|
|
143
149
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -221,7 +227,7 @@ dependencies:
|
|
|
221
227
|
version: 1.6.9
|
|
222
228
|
- - "<"
|
|
223
229
|
- !ruby/object:Gem::Version
|
|
224
|
-
version: '
|
|
230
|
+
version: '4'
|
|
225
231
|
type: :runtime
|
|
226
232
|
prerelease: false
|
|
227
233
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -231,7 +237,7 @@ dependencies:
|
|
|
231
237
|
version: 1.6.9
|
|
232
238
|
- - "<"
|
|
233
239
|
- !ruby/object:Gem::Version
|
|
234
|
-
version: '
|
|
240
|
+
version: '4'
|
|
235
241
|
- !ruby/object:Gem::Dependency
|
|
236
242
|
name: abbrev
|
|
237
243
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1132,12 +1138,12 @@ homepage: https://www.chef.io
|
|
|
1132
1138
|
licenses:
|
|
1133
1139
|
- Apache-2.0
|
|
1134
1140
|
metadata:
|
|
1135
|
-
bug_tracker_uri: https://github.com/chef/
|
|
1136
|
-
changelog_uri: https://github.com/chef/
|
|
1141
|
+
bug_tracker_uri: https://github.com/chef/knife/issues
|
|
1142
|
+
changelog_uri: https://github.com/chef/knife/blob/main/CHANGELOG.md
|
|
1137
1143
|
documentation_uri: https://docs.chef.io/
|
|
1138
1144
|
homepage_uri: https://www.chef.io
|
|
1139
1145
|
mailing_list_uri: https://discourse.chef.io/
|
|
1140
|
-
source_code_uri: https://github.com/chef/
|
|
1146
|
+
source_code_uri: https://github.com/chef/knife/
|
|
1141
1147
|
post_install_message:
|
|
1142
1148
|
rdoc_options: []
|
|
1143
1149
|
require_paths:
|