title: undefined method `instance' for Capistrano::Configuration:Class when trying to use a capistrano task
body: <h3>Problem solved in another way</h3>
  
  <p>I decided to use <a href="https://github.com/sgruhier/capistrano-db-tasks" rel="nofollow">https://github.com/sgruhier/capistrano-db-tasks</a> for solve the problem.</p>
  
  <h3>Original Question</h3>
  
  <p>To clone production database to local <code>Rail</code>'s environment I want to use <a href="https://gist.github.com/318312/55abd3b5a44f579f0722e1eaecb1d651a6bd926b" rel="nofollow">this gist <code>Capistrano</code>'s task</a>.</p>
  
  <p>I copied the code and pasted it into <code>lib/capistrano/tasks/db.cap</code> then I run this command:</p>
  
  <pre><code> % bundle exec cap production db:clone_to_local
  (Backtrace restricted to imported tasks)
  cap aborted!
  NoMethodError: undefined method `instance' for Capistrano::Configuration:Class
  
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>Am I putting the file in wrong place? How can I use this task?</p>