title: Calling a Capistrano task with argument from other task
body: <p>I have a Capistrano 2 task that updates a file</p>
  
  <pre><code>task :update_file, roles: :app do
   ...
  end
  </code></pre>
  
  <p>Now I need to write a task that performs the some operation on all the files within a folder so  from within <code>update_folder</code> I'd like to call <code>update_file</code> passing to it the name of the file to update but I have an hard time doing so.</p>
  
  <p>How can I set a Capistrano task to accept an argument and call it from inside an other task?</p>
  
  <p>Thanks</p>