def run
time('Run') do
if config[:skip_chef_check]
ui.warn '`--skip-chef-check` is deprecated, please use `--no-chef-check`.'
config[:chef_check] = false
end
validate!
ui.msg "Running Chef on #{host}..."
check_chef_version if config[:chef_check]
if config_value(:sync, true)
generate_node_config
berkshelf_install if config_value(:berkshelf, true)
librarian_install if config_value(:librarian, true)
patch_cookbooks_install
sync_kitchen
generate_solorb
end
cook unless config[:sync_only]
clean_up if config[:clean_up]
end
end