# Very basic newb Rake question

**URL:** <https://www.ruby-forum.com/t/very-basic-newb-rake-question/152706>\
**Category:** Ruby\
**Created:** [November 6, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/very-basic-newb-rake-question/152706 "2008-11-06T17:27:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [November 6, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/very-basic-newb-rake-question/152706/1 "2008-11-06T17:27:40Z")

</div>

I have a rakefile that was created automatically by NetBeans, and want  
to run just the rdoc task, which is of the form:

Rake::RDocTask do |rdoc|  
…  
end

However I have no idea what to invoke on the command line to execute  
just this task. Everything I try also seems to invoke the  
SpecTask, which isn’t well-defined since I don’t have a spec directory  
(and don’t even know what it’s for). But it looks like  
the RDocTask is self-contained, and so should be runnable on its own,  
if I simply know how.

Thanks in advance,  
Ken

---

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [November 6, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/very-basic-newb-rake-question/152706/2 "2008-11-06T17:40:40Z")

</div>

On 06.11.2008, at 17:25, Kenneth McDonald wrote:

> SpecTask, which isn’t well-defined since I don’t have a spec  
> directory (and don’t even know what it’s for). But it looks like  
> the RDocTask is self-contained, and so should be runnable on its  
> own, if I simply know how.

# This will list you all commands which the Rakefile in ./ know

$ rake -T

# Maybe that one?

$ rake rdoc

regards, Sandor  
Szücs
