handlers/copy.lua

changeset 7
038275cd92ed
parent 3
b2df1b3f2c83
child 26
77cd7b8fb6a6
--- a/handlers/copy.lua	Sun May 07 20:02:53 2017 +0100
+++ b/handlers/copy.lua	Tue Jan 16 16:39:48 2018 +0000
@@ -1,13 +1,17 @@
 
-module("handlers.copy", package.seeall)
+--@module handlers.copy
+
+local path=require("path")
 
-require("dependency")
-require("log")
+local handlers_copy={}
 
-function phase1(file, env)
+local dependency=require("dependency")
+local log=require("log")
+
+function handlers_copy.phase1(file, env)
 end
     
-function phase2(file, env)
+function handlers_copy.phase2(file, env)
     local src=path.join(env.paths.src, file)
     local dst=path.join(env.paths.dst, file)
     if dependency.simple_update_check(dst, {src}) then
@@ -23,3 +27,5 @@
         end
     end
 end
+
+return handlers_copy

mercurial