lib/kitchen/provisioner/chef_zero.rb
def chef_client_zero_env
        root = config[:root_path]
        gem_home = gem_path = remote_path_join(root, "chef-client-zero-gems")
        gem_cache = remote_path_join(gem_home, "cache")

        [
          shell_env_var("CHEF_REPO_PATH", root),
          shell_env_var("GEM_HOME", gem_home),
          shell_env_var("GEM_PATH", gem_path),
          shell_env_var("GEM_CACHE", gem_cache),
        ].join("\n").concat("\n")
      end
# Generates a string of shell environment variables needed for the
# chef-client-zero.rb shim script to properly function.
#
# @return [String] a shell script string
# @api private
Generates a string of shell environment variables needed for the
chef-client-zero.rb shim script to properly function.
Generates a string of shell environment variables needed for the chef - client - zero . rb shim script to properly function .
def chef_client_zero_env
        root = config[:root_path]
        gem_home = gem_path = remote_path_join(root, "chef-client-zero-gems")
        gem_cache = remote_path_join(gem_home, "cache")
        [
          shell_env_var("CHEF_REPO_PATH", root),
          shell_env_var("GEM_HOME", gem_home),
          shell_env_var("GEM_PATH", gem_path),
          shell_env_var("GEM_CACHE", gem_cache),
        ].join("\n").concat("\n")
      end
def chef_client_zero_env root = config [ :root_path ] gem_home = gem_path = remote_path_join ( root , "chef-client-zero-gems" ) gem_cache = remote_path_join ( gem_home , "cache" ) [ shell_env_var ( "CHEF_REPO_PATH" , root ) , shell_env_var ( "GEM_HOME" , gem_home ) , shell_env_var ( "GEM_PATH" , gem_path ) , shell_env_var ( "GEM_CACHE" , gem_cache ) , ] . join ( "\n" ) . concat ( "\n" ) end
Generates a string of shell environment variables needed for the
chef-client-zero.rb shim script to properly function.
Generates a string of shell environment variables needed for the chef - client - zero . rb shim script to properly function .
a shell script string
a shell script string
String
api
None