lib/kitchen/provisioner/chef_zero.rb
# Determines whether or not local mode (a.k.a chef zero mode) is
# supported in the version of Chef as determined by inspecting the
# require_chef_omnibus config variable.
#
# The only way this method returns false is if require_chef_omnibus has
# an explicit version set to less than 11.8.0, when chef zero mode was
# introduced. Otherwise a modern Chef installation is assumed.
#
# @return [true,false] whether or not the desired version of Chef
#   supports local mode
# @api private
Determines whether or not local mode (a.k.a chef zero mode) is
supported in the version of Chef as determined by inspecting the
require_chef_omnibus config variable.

The only way this method returns false is if require_chef_omnibus has
an explicit version set to less than 11.8.0, when chef zero mode was
introduced. Otherwise a modern Chef installation is assumed.
Determines whether or not local mode ( a . k . a chef zero mode ) is supported in the version of Chef as determined by inspecting the require_chef_omnibus config variable . The only way this method returns false is if require_chef_omnibus has an explicit version set to less than 11 . 8 . 0 when chef zero mode was introduced . Otherwise a modern Chef installation is assumed .
def modern?
        version = config[:require_chef_omnibus]
        case version
        when nil, false, true, 11, "11", "latest"
          true
        else
          if Gem::Version.correct?(version)
            Gem::Version.new(version) >= Gem::Version.new("11.8.0") ? true : false
          else
            true
          end
        end
      end
def modern? version = config [ :require_chef_omnibus ] case version when nil , false , true , 11 , "11" , "latest" true else if Gem :: Version . correct? ( version ) Gem :: Version . new ( version ) >= Gem :: Version . new ( "11.8.0" ) ? true : false else true end end end
Determines whether or not local mode (a.k.a chef zero mode) is
supported in the version of Chef as determined by inspecting the
require_chef_omnibus config variable.
Determines whether or not local mode ( a . k . a chef zero mode ) is supported in the version of Chef as determined by inspecting the require_chef_omnibus config variable .
# Build versions of chef, for example # 12.5.0-current.0+20150721082808.git.14.c91b337-1
whether or not the desired version of Chef supports local mode
whether or not the desired version of Chef supports local mode
true,false
api
None