Trans
1/16/2007 3:52:00 AM
Jim Weirich wrote:
> Trans wrote:
> > is there a standard global var for dry-run? e.g. $DRYRUN. i've been
> > using $NOHARM myself, but decided i want to use whatever rake uses (I
> > assume it sets a global flag so task defs can use it if need be.) which
> > got me thinking it would probably be good if ruby had a standard for
> > this.
>
> Actually no, Rake does not store the dry-run flag in a global. It is
> stored in an options object that is local to the Rake::Application
> object. This allows multiple Rake::Applications running in the same
> memory space, each with its own set of tasks and options.
curiuos, does that scenario actually arise?
but more important to me at the moment, how does one access the
--dry-run flag in one's task?
thanks,
t.