Thanks Peter! I added the @rakefile and repositories lines, and now it works like a charm. The current version can be found here: https://gist.github.com/derkosak/5434126
On Sat, Apr 20, 2013 at 1:07 AM, Peter Donald <[email protected]>wrote: > Hi, > > On Fri, Apr 19, 2013 at 6:41 PM, Khristian Schönrock > <[email protected]> wrote: > > I wrote a small ruby app that works as a "artifact repository" of sorts, > > and allows me to query my local repository and/or to download artifacts > on > > demand. I'm using Buildr to access and manipulate the artifacts. > > I've got the "query" part down, but the "download on demand" bit is > giving > > me a bit of trouble. What I tried is: > > > > ----------------- > > require 'rubygems' > > require 'buildr' > > > > def search_for_artifact(spec) > > art=Buildr.artifact(spec) > > art.invoke unless art==nil > > end > > ----------------- > > > > This works when the artifact is already present, but fails when it must > be > > downloaded with "Internal Error: attempting to access local setting > before > > buildfile located". How can I use this functionality without a buildfile? > > The ugliest way is to set a private variable inside the buildr > application so it works around the lack of a build file. An example of > this in action is at; > > https://gist.github.com/realityforge/5423856 > > -- > Cheers, > > Peter Donald >
