diff --git a/contrib/README.md b/contrib/README.md index 2f2fde5..05a37ed 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -131,12 +131,16 @@ vicious.contrib.wpa - takes the interface as an argument, i.e "wlan0" or "wlan1" - returns a table with string keys: {ssid}, {qual}, {ip}, {bssid} -vicious.contrib.buildbot - - provides last build status for configured buildbot builders (http://trac.buildbot.net/) - - returns build status in the format: [..] - - if is the same as only one number is displayed - - colors: red - failed, green - successful, yellow - in progress - - it depends on lua json parser (e.g. liblua5.1-json on Ubuntu 12.04) +**vicious.contrib.buildbot** + +Provides last build status for configured buildbot builders (http://trac.buildbot.net/) +Supported Platforms: platform independent + +- Returns: + * returns build status in the format: [..] + * if is the same as only one number is displayed + * colors: red - failed, green - successful, yellow - in progress + * it depends on lua json parser (e.g. liblua5.1-json on Ubuntu 12.04) Usage examples diff --git a/contrib/buildbot.lua b/contrib/buildbot_all.lua similarity index 97% rename from contrib/buildbot.lua rename to contrib/buildbot_all.lua index 5743662..a8f1278 100644 --- a/contrib/buildbot.lua +++ b/contrib/buildbot_all.lua @@ -17,10 +17,7 @@ local bb = {} --list of all buildbot builders local bs = {OK=1, FAILED=2, RUNNING=3} local bc = {"green", "red", "yellow"} -module("vicious.contrib.buildbot") - - - +local buildbot_all = {} BB = {} BB.__index = BB @@ -182,5 +179,5 @@ local function worker(format, warg) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +setmetatable(buildbot_all, { __call = function(_, ...) return worker(...) end })