> maybe this is a Windows-specific issue? Good question. I copied the Tempfile to C:\ Ran my version, which added the working dir. to tmp.txt Ran fine.
Ran original version -- same problem. So my speculation was wrong. Maybe that's because Windows has no real root. There's just the \ address in a partition. I've got about a half-dozen partitions, plus similar symbols for some devices It looks to me like the author does run on U*ix, because his next example is: [ja...@brick:~/src]$ rake ready_for_the_day. There also a typo for this example: He claims the output from this command includes the line: Made 5 cups of coffee. Shakes are gone. In fact, it's only 2 cups. His next example: [ja...@brick:~/src]$ rake COFFEE_CUPS=5 make_coffee produces the 5 cup. I'm just amused be the problem the author faced in trying to produce a perfect tutorial. I know that feeling all too well. And I am truly grateful for the author publication of his tutorial. It's leading me through the nuances of Rake. And thanks to you for helping me in my quest for a "black belt" in Rake-ism :-) Best wishes, Richard On Jul 11, 2:04 pm, Hassan Schroeder <[email protected]> wrote: > On Sun, Jul 11, 2010 at 9:51 AM, RichardOnRails > > <[email protected]> wrote: > > > I got took one of the first examples of the website I cited before, > >> >http://jasonseifer.com/2010/04/06/rake-tutorial > > and found that it didn't work "in any directory" as advertised. > > It does indeed work "in any directory" for me, but that's on OS X; > maybe this is a Windows-specific issue? > > ripple:~$ cd Downloads > ripple:~/Downloads$ cat Rakefile > directory "tmp" > > file "hello.tmp" => "tmp" do > sh "echo 'Hello' >> 'tmp/hello.tmp'" > end > ripple:~/Downloads$ ls tmp > ls: tmp: No such file or directory > ripple:~/Downloads$ rake hello.tmp > (in /Users/hassan/Downloads) > mkdir -p tmp > echo 'Hello' >> 'tmp/hello.tmp' > ripple:~/Downloads$ ls tmp/hello.tmp > -rw-r--r-- 1 hassan staff 6 Jul 11 10:59 tmp/hello.tmp > ripple:~/Downloads$ cat tmp/hello.tmp > Hello > ripple:~/Downloads$ > > FWIW, > -- > Hassan Schroeder ------------------------ [email protected] > twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

