daily pastebin goal
16%
SHARE
TWEET

dependencies.lua

_dinsdale Mar 5th, 2017 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- Depenedcies Getter.
  2. -- Gets all application dependencies via luarocks
  3. -- @copyright (c) 2016 Russell Haley
  4. -- @license FreeBSD License. See License.txt
  5.  
  6. local list = require("luarocks.list")
  7. --local cmd = require("luarocks.command_line")
  8. local s = require("serpent")
  9.  
  10.  
  11. local results, trees, flags, version  = list.list("--outdated")
  12. local command = "luarocks list --outdated"
  13.  
  14. print ("Version:\n"..(version or ""))
  15. print ("Trees:\n"..s.block(trees))
  16. print ("results:\n"..s.block(results))
  17. print ("Flags Specified:\n"..s.block(flags))
  18.  
  19.  
  20. local handle = io.popen(command)
  21. local result = handle:read("*a")
  22. handle:close()
  23.  
  24. print(result)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top