# File lib/chef/knife/solo_cook.rb, line 321
      def chef_version
        # Memoize the version to avoid multiple SSH calls
        @chef_version ||= lambda do
          cmd = %q{sudo chef-solo --version 2>/dev/null | awk '$1 == "Chef:" {print $2}'}
          run_command(cmd).stdout.strip
        end.call
      end