Hi all,

[1] gives the overview of what this provides, plus some examples.
Basically it provides functions to query installed and available
packages, and (somewhat experimental) support for installing and
removing. It doesn't shell out the luarocks commands but uses the
existing internal API after doing the basic initial setup - so the
source may be educational for people curious about LR innards.

There was an internal change from 2.0.1 to 2.0.2 which is catered for,
so it works on everything above 2.0.1 - useful because that still
seems to be the Ubuntu version, last time I checked.

When querying a remote repo, by default you only get the basic
information (name, version) but you can ask for more information which
is extracted by downloading the remote rockspecs.  It may not be
always able to tell you what modules the remote package provides,
however.

One use for applications is to provide a way for installed packages to
find out where their metadata lives:

> = api.show ('luarocks-api',nil,'rock_dir')
C:\Program Files\Lua\5.1/lib/luarocks/rocks/luarocks-api/0.5-1

You can install using the rockspec [2] which points to the actual
tarball at [3]  This should be probably bashed around and debated
before moving it up to the main repo, I think.

steve d.


[1] http://stevedonovan.github.com/luarocks-api/
[2] http://stevedonovan.github.com/files/luarocks-api-0.5-1.rockspec
[3] http://stevedonovan.github.com/files/luarocks-api-0.5.tar.gz

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to