repairing default.direct regression

This commit is contained in:
Axel Kittenberger 2012-10-02 22:06:05 +02:00
parent e0c1b25a1b
commit 887b8a004f

View File

@ -9,6 +9,7 @@
-- Note: -- Note:
-- this is infact just a configuration using Layer 1 configuration -- this is infact just a configuration using Layer 1 configuration
-- like any other. It only gets compiled into the binary by default. -- like any other. It only gets compiled into the binary by default.
--
-- You can simply use a modified one, by copying everything into a -- You can simply use a modified one, by copying everything into a
-- config file of yours and name it differently. -- config file of yours and name it differently.
-- --
@ -17,12 +18,21 @@
-- --
--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if not default then error('default not loaded'); end if not default then
if not default.rsync then error('default-direct (currently) needs default.rsync loaded'); end error('default not loaded')
if default.direct then error('default-direct already loaded'); end end
if not default.rsync then
error('default-direct (currently) needs default.rsync loaded')
end
if default.direct then
error('default-direct already loaded')
end
default.direct = { default.direct = {
-----
--
-- Spawns rsync for a list of events -- Spawns rsync for a list of events
-- --
action = function(inlet) action = function(inlet)
@ -149,12 +159,7 @@ default.direct = {
----- -----
-- The rsync binary called. -- The rsync binary called.
-- --
rsyncBinary = '/usr/bin/rsync', rsync = default.rsync.rsync,
-----
-- For startup sync
--
rsyncOpts = '-lts',
----- -----
-- By default do deletes. -- By default do deletes.