Is the indir method considered stable? Or could I just be doing something
wrong with it? If I call the indir method within a file task, it seems to
induce amnesia in the rakefile.
Case in point. I have a rakefile where I've defined the variable GOOGLE_DIR
to contain the path of a working directory for Google-related files.
Then I have a file task that looks like this:
file 'example.html' => ['example.html.erb', 'example.js'] do |t|
puts GOOGLE_DIR
indir GOOGLE_DIR { general_erb_filetask(t) }
end
The first line is not necessary to the build process, but is in there as an
attempt to convince myself that I'm not going crazy. :-)
When I run rake, I see this in the output:
| build/google
| rake aborted!
| undefined method `GOOGLE_DIR' for main:Object
| /home/larry/webwork/montastic/Rakefile:49
That first line is the output of 'puts GOOGLE_DIR'. The rest is the symptom
of amnesia that I'm talking about.
Help!
--
Larry Gilbert
San Diego, CA, USA
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby