Capistrano option "--apply-to" is invalid

I’m attempting to follow the instructions in “Agile Web D. with
Rails” for deploying a Rails application. On page 625 it tells me to
type “cap --apply-to /local/project/path [applicationname]”

My application is called “unit_converter” and it is in directory
“/export/home/adecaria/public_html/” I am typing “cap --apply-to
/export/home/adecaria/public_html/unit_converter” and I am getting the
following error:

“/usr/lib/ruby/1/8/optparse.rb:1381:in `complete’: invalid opotion:
–apply-to (OptionParser::InvalidOption)”
followed by several “from” lines.

Can someone tell me what is wrong?

Thanks,

Alex

Yeah, --apply-to was cap1.x only. Capistrano 2.x uses `capify’:

$ capify /export/home/adecaria/public_html/unit_converter

Cap 1 and cap 2 are different enough that the awdwr book won’t be much
help for getting off the ground, I’m afraid. :frowning: You might want to just
install cap 1.4.3 for that.

  • Jamis

Jamis B. wrote:

Yeah, --apply-to was cap1.x only. Capistrano 2.x uses `capify’:

$ capify /export/home/adecaria/public_html/unit_converter

Cap 1 and cap 2 are different enough that the awdwr book won’t be much
help for getting off the ground, I’m afraid. :frowning: You might want to just
install cap 1.4.3 for that.

  • Jamis

Thanks! - Alex