This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
H4X0RZ's profile picture

Packman GitHub repo with templates

Started by H4X0RZ, 20 August 2016 - 11:25 AM
H4X0RZ #1
Posted 20 August 2016 - 01:25 PM
Hello community!

Today I want to share a little Ruby script with you which allows you to manage your Packman repository easily.
With this, there's no need for you to update a pastebin paste, and hope that by editing one entry, another one won't break. Also, you won't lose the overview when working with many projects in your repository because every project has it's separate file. Just run "ruby convert.rb" and it'll do the magic for you. Then you only have to host the generated stuff somewhere (I suggest GitHub Pages, but it's your decision). Also, it will generate a list which allows you to "browse" all the projects in the repository. Of course you can edit the templates however you want. The example only contains the most minimal ones possible.

Keep in mind that it depends on two gems: erb and ostruct, so install them beforehand if they aren't present on your machine.

Here is mine, for example. I added a bit of CSS (called Milligram) to make it look better. But it's still really minimal.

I hope this is somewhat helpful for someone :D/>

Have a nice day,
~H4X0RZ
Edited on 20 August 2016 - 09:30 PM
Lyqyd #2
Posted 20 August 2016 - 08:33 PM
Looks neat! It's cool to see people doing things to extend Packman and/or make it easier to use.