module Process

def environment_list_to_hash(env_var)

Returns:
  • (Hash) - Converted an array to hash.

Parameters:
  • env_var (Array) -- Environment variables.
def environment_list_to_hash(env_var)
  Hash[ env_var.map { |pair| pair.split("=", 2) } ]
end