# File lib/chef/knife/solo_cook.rb, line 306 def check_chef_version ui.msg "Checking Chef version..." unless chef_version_satisfies?(chef_version_constraint) raise "Couldn't find Chef #{chef_version_constraint} on #{host}. Please run `knife solo prepare #{ssh_args}` to ensure Chef is installed and up to date." end if node_environment != '_default' && chef_version_satisfies?('<11.6.0') ui.warn "Chef version #{chef_version} does not support environments. Environment '#{node_environment}' will be ignored." end end