Exit rake silently

This haas been asked before… I know b/c I did a search for it. But
it was never answered.

How does one gracefully exit rake? If I use #abort or #exit I get much
extraneus output. I ther no way just to silently end the program?

Thanks,
T.

On Feb 4, 5:38 pm, “Trans” [email protected] wrote:

This haas been asked before… I know b/c I did a search for it. But
it was never answered.

How does one gracefully exit rake? If I use #abort or #exit I get much
extraneus output. I ther no way just to silently end the program?

Should have known… as soon as I post this it hits me. Well, FYI to
anyone who may have ever wondered:

Kernel#exit!

T.

Trans wrote:

This haas been asked before… I know b/c I did a search for it. But
it was never answered.

How does one gracefully exit rake? If I use #abort or #exit I get much
extraneus output. I ther no way just to silently end the program?

Really? For

task :default do
exit 0
end

I get:

$ rake -s
$

– Jim W.

On Feb 4, 9:24 pm, Jim W. [email protected] wrote:

exit 0

end

I get:

$ rake -s
$

I get:

$ rake -s
rake aborted!
exit
/file/trans/my/code/ruby/foo/Rakefile:4:in `exit’
(See full trace by running task with --trace)

this if for:

$ rake --version
rake, version 0.7.1

T.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs