How to add documentation or comment in RakeFile

1.2k views Asked by At

I have one Rakefile:

desc 'submodulePull'
task :submodulePull do
  sh 'git submodule update'
  sh 'git submodule foreach git pull'
end

I want to add description about submodulePull work.

How do I add documentation/comment/description about command in RakeFile that should ignore by compiler @run time.

1

There are 1 answers

3
Anthony On

You're already doing it -- that's what desc is, which stands for description.