Module: ChefDK

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

Overview

Copyright

Copyright © 2014-2018 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, ComponentTest, 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, MissingComponentError, MissingCookbookLockData, MultipleErrors, OmnibusInstallNotFound, Pager, PolicyCookbookCleanError, PolicyfileCleanError, PolicyfileCompiler, PolicyfileDownloadError, PolicyfileError, PolicyfileExportRepoError, PolicyfileInstallError, PolicyfileListError, PolicyfileLock, PolicyfileLockDownloadError, PolicyfileNestedException, PolicyfileNotFound, PolicyfilePushArchiveError, PolicyfilePushError, PolicyfileServiceError, PolicyfileUpdateError, QuieterDocFormatter, ShellCompletionTemplateContext, ShellOut, UI, UndeleteError, UndoRecordNotFound, UnsupportedFeature

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

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

Yields:



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

def self.commands
  yield commands_map
end

.commands_mapObject



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

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