summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitano/lace.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/gitano/lace.lua b/lib/gitano/lace.lua
index 472502c..48b2626 100644
--- a/lib/gitano/lace.lua
+++ b/lib/gitano/lace.lua
@@ -11,30 +11,8 @@ local log = require 'gitano.log'
local pcre = require "rex_pcre"
-local function flatten_name(n)
- return n:gsub("[^A-Za-z0-9.-]", "_")
-end
-local function generate_automatics(ctx)
- local config = ctx.repo.config
- local automatics = {}
- for u in pairs(config.users) do
- automatics["user_" .. flatten_name(u)] = "user exact " .. u
- end
- for g in pairs(config.groups) do
- automatics["group_" .. flatten_name(g)] = "group exact " .. g
- end
- local ret = {}
- for k, v in pairs(automatics) do
- ret[#ret+1] = "define auto_" .. k .. " " .. v
- end
- ret[#ret+1] = "\n"
- return table.concat(ret,"\n")
-end
-
local global_lookaside = {
- ["_automatics"] = generate_automatics,
["_basis"] = [[
-include global:_automatics
include global:core
]]
}