Topic: Capistrano SSH Keys method_missing error

I'm getting this error when setting up SSH keys from a clean rails app:

sync:~/Projects/Deploytest burnboy$ cap setup ssh keys
  * executing task setup
  * executing "mkdir -p -m 775 /home/burnboy/www/Deploytest /home/burnboy/www/Deploytest/releases /home/burnboy/www/Deploytest/shared /home/burnboy/www/Deploytest/shared/system &&\n    mkdir -p -m 777 /home/burnboy/www/Deploytest/shared/log &&\n    mkdir -p -m 777 /home/burnboy/www/Deploytest/shared/pids"
    servers: ["192.168.1.42"]
    [192.168.1.42] executing command
    command finished
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/actor.rb:521:in `method_missing': undefined method `ssh' for #<Capistrano::Actor:0x103decc> (NoMethodError)
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in `send'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in `execute_recipes!'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in `execute_recipes!'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:247:in `execute!'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:12:in `execute!'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/bin/cap:11
        from /usr/local/bin/cap:16:in `load'
        from /usr/local/bin/cap:16


I can't get past this point, capistrano won't work for anything else.

Any suggestions?

Re: Capistrano SSH Keys method_missing error

It's interpreting 'setup', 'ssh', and 'keys' as three different tasks.  It's hanging on the 'ssh' because there's no task named that.

I'm unfamiliar with setting up capistrano in this way so I'm just blindly guessing here but is there a 'ssh_keys' task or something like that?

Re: Capistrano SSH Keys method_missing error

Well, so much for thinking I tried everything. The video I got an example from was from Peepcode:

http://topfunky.com/clients/peepcode/fr … deprec.mov

Apparently I didn't squint enough to see the underscores between setup_ssh_keys.

It works now.
Go figure.

Thanks, though!