Try,

Buildr.environment

I'll fix the doc.

alex


On Fri, Feb 5, 2010 at 10:22 AM, Sebastian Hennebrueder
<[email protected]>wrote:

> Hello,
>
> I try to adapt my buildfile depending on the environment setting.
>
> I set up a minimalistic buildfile to check why, I cannot access
> environment. The first puts works, the second not.
>
> Most likely I misunderstood the usage. Do you have any idea?
>
> -------
> require 'buildr'
>
> define 'foo' do
> puts "Env #{ENV['BUILDR_ENV']}"
> puts "#{environment}"
> end
> -------
>
> --
> Best Regards / Viele Grüße
>
> Sebastian Hennebrueder
> -----
> Software Developer and Trainer for Hibernate / Java Persistence
> http://www.laliluna.de
>
>
>
>

Reply via email to