Skip to content

Commit

Permalink
Add rockspec (#60)
Browse files Browse the repository at this point in the history
* Add rockspec

* Adding .init extension to files which are not inside a package, for require function to work properly
  • Loading branch information
vdatcu authored and atrifan committed Feb 28, 2018
1 parent 96e91b1 commit 6b84d27
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions dist/luarocks/apigateway-2.0.2-1.rockspec
@@ -0,0 +1,41 @@
package = "apigateway"
version = "2.0.2-1"

local fsPrefix = "./api-gateway-config/scripts/lua/"
local packagePrefix = "api-gateway."

local function make_plat(plat)
return {
modules = {
["api_gateway_init.init"] = fsPrefix .. "api_gateway_init.lua",
[packagePrefix .. "metrics.factory"] = fsPrefix .. "metrics/factory.lua",
[packagePrefix .. "metrics.MetricsBuffer"] = fsPrefix .. "metrics/MetricsBuffer.lua",
[packagePrefix .. "metrics.MetricsCollector"] = fsPrefix .. "metrics/MetricsCollector.lua"
}
}
end

source = {
url = "https://github.com/adobe-apiplatform/apigateway.git",
tag = "api-gateway-docker-2.0.2"
}

description = {
summary = "Base API Gateway installation",
license = "MIT"
}

dependencies = {
"lua > 5.1"
}

build = {
type = "builtin",
platforms = {
unix = make_plat("unix"),
macosx = make_plat("macosx"),
haiku = make_plat("haiku"),
win32 = make_plat("win32"),
mingw32 = make_plat("mingw32")
}
}

0 comments on commit 6b84d27

Please sign in to comment.