class ChefSpec::ChefFormatter
def attribute_file_load_failed(path, exception)
def attribute_file_load_failed(path, exception) file_load_failed(path, exception) end
def attribute_file_loaded(path); end
def attribute_file_loaded(path); end
def attribute_load_complete; end
def attribute_load_complete; end
def attribute_load_start(attribute_file_count); end
def attribute_load_start(attribute_file_count); end
def converge_complete; end
def converge_complete; end
def converge_start(run_context); end
def converge_start(run_context); end
def cookbook_clean_complete; end
def cookbook_clean_complete; end
def cookbook_clean_start; end
def cookbook_clean_start; end
def cookbook_resolution_complete(cookbook_collection); end
def cookbook_resolution_complete(cookbook_collection); end
def cookbook_resolution_failed(expanded_run_list, exception)
Called when there is an error getting the cookbook collection from the
def cookbook_resolution_failed(expanded_run_list, exception) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.cookbook_resolution_failed(expanded_run_list, exception) display_error(description) end end
def cookbook_resolution_start(expanded_run_list); end
def cookbook_resolution_start(expanded_run_list); end
def cookbook_sync_complete; end
def cookbook_sync_complete; end
def cookbook_sync_failed(cookbooks, exception)
def cookbook_sync_failed(cookbooks, exception) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.cookbook_sync_failed(cookbooks, exception) display_error(description) end end
def cookbook_sync_start(cookbook_count); end
def cookbook_sync_start(cookbook_count); end
def definition_file_load_failed(path, exception)
def definition_file_load_failed(path, exception) file_load_failed(path, exception) end
def definition_file_loaded(path); end
def definition_file_loaded(path); end
def definition_load_complete; end
def definition_load_complete; end
def definition_load_start(definition_file_count); end
def definition_load_start(definition_file_count); end
def expecting_exception(exception, &block)
def expecting_exception(exception, &block) yield unless ChefSpec::ExpectException.new(exception).expected? end
def file_load_failed(path, exception)
def file_load_failed(path, exception) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.file_load_failed(path, exception) display_error(description) end end
def handler_executed(handler); end
def handler_executed(handler); end
def handlers_completed; end
def handlers_completed; end
def handlers_start(handler_count); end
def handlers_start(handler_count); end
def library_file_load_failed(path, exception)
def library_file_load_failed(path, exception) file_load_failed(path, exception) end
def library_file_loaded(path); end
def library_file_loaded(path); end
def library_load_complete; end
def library_load_complete; end
def library_load_start(file_count); end
def library_load_start(file_count); end
def lwrp_file_load_failed(path, exception)
def lwrp_file_load_failed(path, exception) file_load_failed(path, exception) end
def lwrp_file_loaded(path); end
def lwrp_file_loaded(path); end
def lwrp_load_complete; end
def lwrp_load_complete; end
def lwrp_load_start(lwrp_file_count); end
def lwrp_load_start(lwrp_file_count); end
def msg(message); end
message. That means that if you're using this too often, you should add a
there's no semantic information about the content or importance of the
pass output that doesn't fit into one of the callbacks above. Note that
An uncategorized message. This supports the case that a user needs to
def msg(message); end
def node_load_completed(node, expanded_run_list, config); end
Default and override attrs from roles have been computed, but not yet applied.
Called after Chef client has loaded the node data.
def node_load_completed(node, expanded_run_list, config); end
def node_load_failed(node_name, exception, config)
def node_load_failed(node_name, exception, config) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.node_load_failed(node_name, exception, config) display_error(description) end end
def node_load_start(node_name, config); end
def node_load_start(node_name, config); end
def ohai_completed(node); end
def ohai_completed(node); end
def ohai_plugin_file_load_failed(path, exception); end
def ohai_plugin_file_load_failed(path, exception); end
def ohai_plugin_file_loaded(path); end
def ohai_plugin_file_loaded(path); end
def ohai_plugin_load_complete; end
def ohai_plugin_load_complete; end
def ohai_plugin_load_start(file_count); end
def ohai_plugin_load_start(file_count); end
def provider_requirement_failed(action, resource, exception, message); end
def provider_requirement_failed(action, resource, exception, message); end
def recipe_file_load_failed(path, exception)
def recipe_file_load_failed(path, exception) file_load_failed(path, exception) end
def recipe_file_loaded(path); end
def recipe_file_loaded(path); end
def recipe_load_complete; end
def recipe_load_complete; end
def recipe_load_start(recipe_count); end
def recipe_load_start(recipe_count); end
def recipe_not_found(exception)
def recipe_not_found(exception) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.file_load_failed(nil, exception) display_error(description) end end
def registration_completed; end
def registration_completed; end
def registration_failed(node_name, exception, config)
def registration_failed(node_name, exception, config) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.registration_failed(node_name, exception, config) display_error(description) end end
def registration_start(node_name, config); end
def registration_start(node_name, config); end
def removed_cookbook_file(path); end
cookbook containing it was removed from the run list, or if the file was
Called after the file at +path+ is removed. It may be removed if the
def removed_cookbook_file(path); end
def resource_action_start(resource, action, notification_type = nil, notifier = nil); end
def resource_action_start(resource, action, notification_type = nil, notifier = nil); end
def resource_bypassed(resource, action, current_resource); end
def resource_bypassed(resource, action, current_resource); end
def resource_completed(resource); end
def resource_completed(resource); end
def resource_current_state_load_bypassed(resource, action, current_resource); end
Called when resource current state load is skipped due to the provider
def resource_current_state_load_bypassed(resource, action, current_resource); end
def resource_current_state_loaded(resource, action, current_resource); end
def resource_current_state_loaded(resource, action, current_resource); end
def resource_failed(resource, action, exception)
def resource_failed(resource, action, exception) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.resource_failed(resource, action, exception) display_error(description) end end
def resource_failed_retriable(resource, action, retry_count, exception); end
def resource_failed_retriable(resource, action, retry_count, exception); end
def resource_skipped(resource, action, conditional); end
def resource_skipped(resource, action, conditional); end
def resource_up_to_date(resource, action); end
def resource_up_to_date(resource, action); end
def resource_update_applied(resource, action, update); end
times per resource, e.g., a file may have its content updated, and then
Called when a change has been made to a resource. May be called multiple
def resource_update_applied(resource, action, update); end
def resource_updated(resource, action); end
Called after a resource has been completely converged, but only if
def resource_updated(resource, action); end
def run_completed(node); end
def run_completed(node); end
def run_failed(exception); end
def run_failed(exception); end
def run_list_expand_failed(node, exception)
def run_list_expand_failed(node, exception) expecting_exception(exception) do description = Chef::Formatters::ErrorMapper.run_list_expand_failed(node, exception) display_error(description) end end
def run_start(version); end
def run_start(version); end
def run_started(run_status); end
def run_started(run_status); end
def skipping_registration(node_name, config); end
def skipping_registration(node_name, config); end
def synchronized_cookbook(cookbook_name); end
def synchronized_cookbook(cookbook_name); end
def updated_cookbook_file(cookbook_name, path); end
def updated_cookbook_file(cookbook_name, path); end
def whyrun_assumption(action, resource, message); end
Called when a provider makes an assumption after a failed assertion
def whyrun_assumption(action, resource, message); end