buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martin.grot...@javakaffee.de
Subject AW: Re: How to apply configurations from profiles?
Date Sun, 22 Feb 2009 18:48:21 GMT
Ok, great, I'll try this later (only at the phone right now).
Is there a way to apply _all_ values of the profile, without the need to specify each explicitely?

Thanx && cheers,
Martin


-- Urspr. Mitt. --
Betreff: Re: How to apply configurations from profiles?
Von: Alex Boisvert <boisvert@intalio.com>
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 <
martin.grotzke@javakaffee.de> 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:
>
> [grotzke@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
>
>
>
>



Mime
View raw message