lib/kitchen/provisioner/chef_base.rb
# Generates the init command variables for PowerShell-based platforms.
#
# @param dirs [Array<String>] directories
# @return [String] shell variable lines
# @api private
Generates the init command variables for PowerShell-based platforms.
Generates the init command variables for PowerShell - based platforms .
def init_command_vars_for_powershell(dirs)
        [
          %{$dirs = @(#{dirs.map { |d| %{"#{d}"} }.join(", ")})},
          shell_var("root_path", config[:root_path])
        ].join("\n")
      end
def init_command_vars_for_powershell ( dirs ) [ %{$dirs = @(#{dirs.map { |d| %{"#{d}"} }.join(", ")})} , shell_var ( "root_path" , config [ :root_path ] ) ] . join ( "\n" ) end
Generates the init command variables for PowerShell-based platforms.
Generates the init command variables for PowerShell - based platforms .
shell variable lines
shell variable lines
String
dirs
None
api
None