-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathboot2.lua
More file actions
47 lines (34 loc) · 1.07 KB
/
Copy pathboot2.lua
File metadata and controls
47 lines (34 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--[[
turtle bootstrap level 2
basic copy of bootstrap but grabs more programs
reasoning is that github workflow is easier for to manage without
mucking with pastebin site or API
Usage:
> github get seriallos/computercraft/master/boot2.lua boot2
> boot2
--]]
http_runs = {
["pastebin"] = {
-- better quarry program from adam smith
["PAPDddcb"] = "quarry",
},
-- make sure to use the right URL for raw.github.com
["github"] = {
-- gist loader
["seriallos/computercraft/master/gist.lua"] = "gist",
-- chop down 2x2 redwoods
["seriallos/computercraft/master/redwood.lua"] = "redwood",
-- dig stairs down into the ground
["seriallos/computercraft/master/stairs.lua"] = "stairs",
-- twilio test program
["seriallos/computercraft/master/alert.lua"] = "alert",
-- apis
["seriallos/computercraft/master/twilio.lua"] = "twilio",
},
}
for service, list in pairs( http_runs ) do
for id, program in pairs( list ) do
print( "Downloading "..program.." from "..service )
shell.run( service, "get", id, program )
end
end