lib/kitchen/provisioner/chef_zero.rb
def prepare_chef_client_zero_rb
        return if modern?

        info("Preparing chef-client-zero.rb")
        debug("Using a vendored chef-client-zero.rb")

        source = File.join(File.dirname(__FILE__),
                           %w{.. .. .. support chef-client-zero.rb})
        FileUtils.cp(source, File.join(sandbox_path, "chef-client-zero.rb"))
      end
# Writes a chef-client local-mode shim script to the sandbox directory
# only if the desired version of Chef is old enough. The version of Chef
# is determined using the `config[:require_chef_omnibus]` value.
#
# @api private
Writes a chef-client local-mode shim script to the sandbox directory
only if the desired version of Chef is old enough. The version of Chef
is determined using the `config[:require_chef_omnibus]` value.
Writes a chef - client local - mode shim script to the sandbox directory only if the desired version of Chef is old enough . The version of Chef is determined using the ` config [ : require_chef_omnibus ] ` value .
def prepare_chef_client_zero_rb
        return if modern?
        info("Preparing chef-client-zero.rb")
        debug("Using a vendored chef-client-zero.rb")
        source = File.join(File.dirname(__FILE__),
                           %w{.. .. .. support chef-client-zero.rb})
        FileUtils.cp(source, File.join(sandbox_path, "chef-client-zero.rb"))
      end
def prepare_chef_client_zero_rb return if modern? info ( "Preparing chef-client-zero.rb" ) debug ( "Using a vendored chef-client-zero.rb" ) source = File . join ( File . dirname ( __FILE__ ) , %w{ .. .. .. support chef-client-zero.rb } ) FileUtils . cp ( source , File . join ( sandbox_path , "chef-client-zero.rb" ) ) end
Writes a chef-client local-mode shim script to the sandbox directory
only if the desired version of Chef is old enough.
Writes a chef - client local - mode shim script to the sandbox directory only if the desired version of Chef is old enough .
api
None