buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Hennebrueder <>
Subject undefined local variable or method `environment'
Date Fri, 05 Feb 2010 18:22:56 GMT

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}"

Best Regards / Viele Grüße

Sebastian Hennebrueder
Software Developer and Trainer for Hibernate / Java Persistence

View raw message