Module: ChefCLI

Defined in:
lib/chef-cli.rb,
lib/chef-cli/ui.rb,
lib/chef-cli/cli.rb,
lib/chef-cli/dist.rb,
lib/chef-cli/pager.rb,
lib/chef-cli/helpers.rb,
lib/chef-cli/version.rb,
lib/chef-cli/generator.rb,
lib/chef-cli/shell_out.rb,
lib/chef-cli/exceptions.rb,
lib/chef-cli/chef_runner.rb,
lib/chef-cli/command/env.rb,
lib/chef-cli/command/gem.rb,
lib/chef-cli/command/base.rb,
lib/chef-cli/command/diff.rb,
lib/chef-cli/command/exec.rb,
lib/chef-cli/command/push.rb,
lib/chef-cli/commands_map.rb,
lib/chef-cli/command/export.rb,
lib/chef-cli/command/update.rb,
lib/chef-cli/policyfile/dsl.rb,
lib/chef-cli/command/install.rb,
lib/chef-cli/policyfile_lock.rb,
lib/chef-cli/command/generate.rb,
lib/chef-cli/command/undelete.rb,
lib/chef-cli/cookbook_metadata.rb,
lib/chef-cli/policyfile/differ.rb,
lib/chef-cli/policyfile/lister.rb,
lib/chef-cli/authenticated_http.rb,
lib/chef-cli/command/shell_init.rb,
lib/chef-cli/service_exceptions.rb,
lib/chef-cli/command/show_policy.rb,
lib/chef-cli/policyfile/uploader.rb,
lib/chef-cli/policyfile_compiler.rb,
lib/chef-cli/command/push_archive.rb,
lib/chef-cli/chef_server_api_multi.rb,
lib/chef-cli/command/delete_policy.rb,
lib/chef-cli/cookbook_profiler/git.rb,
lib/chef-cli/policyfile/source_uri.rb,
lib/chef-cli/policyfile/undo_stack.rb,
lib/chef-cli/policyfile/undo_record.rb,
lib/chef-cli/policyfile/lock_applier.rb,
lib/chef-cli/policyfile_services/push.rb,
lib/chef-cli/command/describe_cookbook.rb,
lib/chef-cli/policyfile/cookbook_locks.rb,
lib/chef-cli/policyfile/reports/upload.rb,
lib/chef-cli/policyfile/storage_config.rb,
lib/chef-cli/command/generator_commands.rb,
lib/chef-cli/cookbook_profiler/null_scm.rb,
lib/chef-cli/policyfile/comparison_base.rb,
lib/chef-cli/policyfile/reports/install.rb,
lib/chef-cli/command/delete_policy_group.rb,
lib/chef-cli/policyfile/git_lock_fetcher.rb,
lib/chef-cli/policyfile_services/install.rb,
lib/chef-cli/policyfile_services/undelete.rb,
lib/chef-cli/service_exception_inspectors.rb,
lib/chef-cli/cookbook_profiler/identifiers.rb,
lib/chef-cli/policyfile/local_lock_fetcher.rb,
lib/chef-cli/policyfile/lock_fetcher_mixin.rb,
lib/chef-cli/policyfile_services/rm_policy.rb,
lib/chef-cli/command/clean_policy_cookbooks.rb,
lib/chef-cli/command/clean_policy_revisions.rb,
lib/chef-cli/policyfile/remote_lock_fetcher.rb,
lib/chef-cli/command/generator_commands/base.rb,
lib/chef-cli/command/generator_commands/repo.rb,
lib/chef-cli/policyfile/null_cookbook_source.rb,
lib/chef-cli/policyfile_services/export_repo.rb,
lib/chef-cli/policyfile_services/show_policy.rb,
lib/chef-cli/command/generator_commands/input.rb,
lib/chef-cli/policyfile/reports/table_printer.rb,
lib/chef-cli/policyfile/solution_dependencies.rb,
lib/chef-cli/policyfile_services/push_archive.rb,
lib/chef-cli/command/generator_commands/recipe.rb,
lib/chef-cli/command/generator_commands/waiver.rb,
lib/chef-cli/service_exception_inspectors/base.rb,
lib/chef-cli/service_exception_inspectors/http.rb,
lib/chef-cli/command/generator_commands/helpers.rb,
lib/chef-cli/command/generator_commands/profile.rb,
lib/chef-cli/policyfile/attribute_merge_checker.rb,
lib/chef-cli/policyfile_services/clean_policies.rb,
lib/chef-cli/command/generator_commands/cookbook.rb,
lib/chef-cli/command/generator_commands/resource.rb,
lib/chef-cli/command/generator_commands/template.rb,
lib/chef-cli/policyfile/chef_server_lock_fetcher.rb,
lib/chef-cli/policyfile_services/rm_policy_group.rb,
lib/chef-cli/command/generator_commands/attribute.rb,
lib/chef-cli/policyfile/chef_repo_cookbook_source.rb,
lib/chef-cli/policyfile/community_cookbook_source.rb,
lib/chef-cli/command/generator_commands/policyfile.rb,
lib/chef-cli/policyfile_services/update_attributes.rb,
lib/chef-cli/policyfile/artifactory_cookbook_source.rb,
lib/chef-cli/policyfile/chef_server_cookbook_source.rb,
lib/chef-cli/policyfile/delivery_supermarket_source.rb,
lib/chef-cli/command/generator_commands/cookbook_file.rb,
lib/chef-cli/policyfile/cookbook_location_specification.rb,
lib/chef-cli/policyfile_services/clean_policy_cookbooks.rb,
lib/chef-cli/policyfile/included_policies_cookbook_source.rb,
lib/chef-cli/policyfile/policyfile_location_specification.rb,
lib/chef-cli/command/generator_commands/cookbook_code_file.rb,
lib/chef-cli/command/generator_commands/generator_generator.rb,
lib/chef-cli/policyfile/read_cookbook_for_compat_mode_upload.rb,
lib/chef-cli/command/generator_commands/chef_exts/recipe_dsl_ext.rb,
lib/chef-cli/command/generator_commands/chef_exts/quieter_doc_formatter.rb,
lib/chef-cli/command/generator_commands/chef_exts/generator_desc_resource.rb,
lib/chef-cli/configurable.rb

Overview

Copyright

Chef Software Inc.

License

Apache License, Version 2.0

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

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

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

Defined Under Namespace

Modules: ChefResource, Command, Configurable, CookbookProfiler, Generator, Helpers, NestedExceptionWithInspector, Policyfile, PolicyfileServices, RecipeDSLExt, ServiceExceptionInspectors Classes: BUG, CLI, CachedCookbookModified, CachedCookbookNotFound, CantUndo, ChefConvergeError, ChefRunner, ChefRunnerError, ChefServerAPIMulti, CommandsMap, CookbookDoesNotContainRequiredRecipe, CookbookMetadata, CookbookNotFound, CookbookNotInWorkingSet, CookbookSourceConflict, DeletePolicyError, DeletePolicyGroupError, DependencyConflict, Dist, ExportDirNotEmpty, GitError, IdDumper, IncludePolicyCookbookSourceConflict, InvalidCookbookLockData, InvalidLockfile, InvalidPolicyArchive, InvalidPolicyfileAttribute, InvalidPolicyfileFilename, InvalidPolicyfileLocation, InvalidPolicyfileSourceURI, InvalidUndoRecord, LocalCookbookNotFound, LocalPolicyfileLockNotFound, LockfileNotFound, MalformedCookbook, MalformedLockfile, MissingCookbookLockData, MultipleErrors, OmnibusInstallNotFound, Pager, PolicyCookbookCleanError, PolicyfileBadCookbookMetadata, PolicyfileCleanError, PolicyfileCompiler, PolicyfileDownloadError, PolicyfileError, PolicyfileExportRepoError, PolicyfileInstallError, PolicyfileListError, PolicyfileLock, PolicyfileLockDownloadError, PolicyfileMissingCookbookMetadata, PolicyfileNestedException, PolicyfileNotFound, PolicyfilePushArchiveError, PolicyfilePushError, PolicyfileServiceError, PolicyfileUpdateError, QuieterDocFormatter, ShellCompletionTemplateContext, ShellOut, UI, UndeleteError, UndoRecordNotFound, UnsupportedFeature

Constant Summary collapse

VERSION =
"5.6.16".freeze
AuthenticatedHTTP =
Chef::ServerAPI

Class Method Summary collapse

Class Method Details

.commands {|commands_map| ... } ⇒ Object

Yields:



110
111
112
# File 'lib/chef-cli/commands_map.rb', line 110

def self.commands
  yield commands_map
end

.commands_mapObject



106
107
108
# File 'lib/chef-cli/commands_map.rb', line 106

def self.commands_map
  @commands_map ||= CommandsMap.new
end