Hi, On Sun, 2009-02-22 at 19:48 +0100, [email protected] wrote: > Ok, great, I'll try this later (only at the phone right now). Just to confirm: it's working, great :)
> Is there a way to apply _all_ values of the profile, without the need to > specify each explicitely? To answer this by myself, it's really easy: resources.filter.using Buildr.settings.profile This might also go into the documentation, as I'd say this is a standard use case - as long as you don't think this is just too obvious :) Cheers, Martin > > Thanx && cheers, > Martin > > > -- Urspr. Mitt. -- > Betreff: Re: How to apply configurations from profiles? > Von: Alex Boisvert <[email protected]> > Datum: 22.02.2009 16:06 > > Looks like a documentation bug... It should be: > > resources.filter.using :foo=>Buildr.settings.profile['foo'] > ^^^^^^ > > I'll fix the doc now. > > alex > > On Sat, Feb 21, 2009 at 6:21 PM, Martin Grotzke < > [email protected]> wrote: > > > Hi, > > > > I'm just trying to get some resources filtered, however it does not > > work. > > > > Here's what I'm trying: > > > > > > With just > > > > resources.filter > > > > $ buildr -e test build > > > > does not filter/change anything. > > > > > > When I use > > > > resources.filter :foo=>Buildr.settings.profile['foo'] > > > > I get this error: > > > > [grot...@mescalin shop]$ buildr -e test build > > (in /home/grotzke/proj/freiheit/myproj, test) > > [Failed] Your build failed with an error: > > /home/grotzke/proj/freiheit/myproj: > > wrong number of arguments (1 for 0) > > buildr aborted! > > wrong number of arguments (1 for 0) > > /home/grotzke/proj/freiheit/myproj/buildfile:86:in `filter' > > /home/grotzke/proj/freiheit/myproj/buildfile:86 > > > > > > My profiles.yaml (next to my buildfile) looks is this: > > > > ---------------------- > > development: > > foo: dev > > > > test: > > foo: test > > ---------------------- > > > > > > What is the issue here? Do I have to "require" the profiles.yaml > > somehow? > > Is it correct, that profiles are meant to be used for filtering > > resources, without the need to specify each profile configuration > > separately in resources.filter? > > > > Thanx in advance, > > cheers, > > Martin > > > > > > > > > > -- Martin Grotzke http://www.javakaffee.de/blog/
signature.asc
Description: This is a digitally signed message part
