buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: undefined local variable or method `environment'
Date Fri, 05 Feb 2010 19:12:58 GMT
Try,

Buildr.environment

I'll fix the doc.

alex


On Fri, Feb 5, 2010 at 10:22 AM, Sebastian Hennebrueder
<usenet@laliluna.de>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
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message