title: Capistrano not recognizing multistage stage
body: <p>I'm trying to get a multistage capistrano deployment to my production and staging servers. Here's my <code>deploy.rb</code> file (scm details omitted):</p>
  
  <pre><code>require 'bundler/capistrano'
  require 'whenever/capistrano'
  
  set :application, "myapp"
  
  set :stages, %w{staging, production}
  set :default_stage, "staging"
  require 'capistrano/ext/multistage'
  
  set :deploy_to, "/webapps/myapp"
  
  set(:domain) { "#{domain}" }
  role(:web) { domain }
  role(:app) { domain }
  role(:db, :primary =&gt; true) { domain }
  
  default_run_options[:pty] = true
  
  namespace :one do
      task :foo do
          puts "foo"
      end
  end
  </code></pre>
  
  <p>And in <code>config/deploy/production.rb</code>:</p>
  
  <pre><code>set :domain, "production.com"
  set :user, "prod"
  </code></pre>
  
  <p><code>config/deploy/staging.rb</code>:</p>
  
  <pre><code>set :domain, "shootsystage.com"
  set :user, "stage"
  </code></pre>
  
  <p>Nothing too exotic going on (I think). Running <code>cap production one:foo</code> works fine. But running <code>cap staging one:foo</code> results in: </p>
  
  <pre><code>the task `staging' does not exist
  </code></pre>
  
  <p>What's going on?</p>