diff --git a/default-direct.lua b/default-direct.lua index 29b6c08..74f5f28 100644 --- a/default-direct.lua +++ b/default-direct.lua @@ -34,6 +34,21 @@ local direct = { } default.direct = direct + +-- +-- known configuration parameters +-- +direct.checkgauge = { + -- + -- inherits rsync config params + -- + default.rsync.checkgauge, + + rsyncExitCodes = true, + onMove = true, +} + + -- -- Spawns rsync for a list of events -- @@ -154,6 +169,12 @@ direct.delay = 1 -- direct.onMove = true +-- +-- Rsync configuration for startup. +-- +direct.rsync = default.rsync.rsync +direct.rsyncExitCodes = default.rsyncExitCodes + -- -- By default do deletes. -- diff --git a/default.lua b/default.lua index b801c56..f3c1191 100644 --- a/default.lua +++ b/default.lua @@ -48,9 +48,8 @@ default.checkgauge = { onStartup = true, onMove = true, prepare = true, - -- rsyncExitCodes = true, -- TODO source = true, - -- sshExitCodes = true -- TODO + target = true, } -- diff --git a/tests/schedule.lua b/tests/schedule.lua index 074468a..f00b54e 100755 --- a/tests/schedule.lua +++ b/tests/schedule.lua @@ -47,7 +47,7 @@ sync {ccircuit, source ="]]..srcdir..[[", target = "]]..trgdir..[["} -- test if the filename exists, fails if this is different to expect -local function testfile(filename) +local function testfile(filename) local stat, err = posix.stat(filename) if not stat then cwriteln("failure: ",filename," missing");