Posted 19 March 2015 - 02:42 AM
Features:
Copy and paste this at the top of your installer. This is the easiest and recommended way.
Functions:
pasteRun(pasteID, tableOfArgs)]
pastePI(pasteID,tableForAPI) - This will load the pasteID, but all functions go into the global table of name specified. As in, you pass it 2 strings.
pasteGet(pasteID) Returns: The program, in a string
pasteGetAndSave(pasteID,fileLocation) Gets a program and writes it to a file.
So, it's a fairy simple API, 56 lines long. I wrote it because of the need for loading an API off pastebin, then decided I should just make it a general purpose installer API.
- Load an API directly from pastebin without a single fs call
- Run something from pastebin without running the Pastebin program(not the greatest idea)
- Download something from pastebin, again, without running the Pastebin program.
Copy and paste this at the top of your installer. This is the easiest and recommended way.
Functions:
pasteRun(pasteID, tableOfArgs)]
pastePI(pasteID,tableForAPI) - This will load the pasteID, but all functions go into the global table of name specified. As in, you pass it 2 strings.
pasteGet(pasteID) Returns: The program, in a string
pasteGetAndSave(pasteID,fileLocation) Gets a program and writes it to a file.
So, it's a fairy simple API, 56 lines long. I wrote it because of the need for loading an API off pastebin, then decided I should just make it a general purpose installer API.
Edited on 19 March 2015 - 01:42 AM