lib/kitchen/provisioner/chef_zero.rb
# Returns the command that will run a backwards compatible shim script
# that approximates local mode in a modern chef-client run.
#
# @return [String] the command string
# @api private
Returns the command that will run a backwards compatible shim script
that approximates local mode in a modern chef-client run.
Returns the command that will run a backwards compatible shim script that approximates local mode in a modern chef - client run .
def shim_command
        ruby = remote_path_join(config[:ruby_bindir], "ruby")
               .tap { |path| path.concat(".exe") if windows_os? }
        shim = remote_path_join(config[:root_path], "chef-client-zero.rb")
        "#{chef_client_zero_env}\n#{sudo(ruby)} #{shim}"
      end
def shim_command ruby = remote_path_join ( config [ :ruby_bindir ] , "ruby" ) . tap { | path | path . concat ( ".exe" ) if windows_os? } shim = remote_path_join ( config [ :root_path ] , "chef-client-zero.rb" ) "#{chef_client_zero_env}\n#{sudo(ruby)} #{shim}" end
Returns the command that will run a backwards compatible shim script
that approximates local mode in a modern chef-client run.
Returns the command that will run a backwards compatible shim script that approximates local mode in a modern chef - client run .
the command string
the command string
String
api
None