title: How to run rake tasks from console?
body: <p>I want to invoke my rake task from console. Is it doable? if yes, how to do so?</p>
  
  <p>I tried this on console:</p>
  
  <pre class="lang-rb prettyprint-override"><code>require 'rake'
  Rake::Task['my_task'].invoke
  </code></pre>
  
  <p>but it give me this error:</p>
  
  <pre><code>RuntimeError: Don't know how to build task
  </code></pre>
  
  <p>it's like the rake cannot found the task.</p>
  
  <p>any help would be appreciated.</p>
  
  <p>Thank you</p>
  
  <p>Edit: I am using rails 2.3.5</p>