Hello,

I am having problems setting up Capistrano on my windowsXP machine. I
install it, updated the gems, but when I type any cap command, either -
V, setup, deploy, etc, I get the following message:

/ruby/bin/cap:17: undefined method `require_gem' for main:Object
(NoMethodError)

I've check the cap file and found this:

# The application 'capistrano' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'
version = "> 0"
if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
if Gem::Version.correct?(ARGV[0][1..-2])
version = ARGV[0][1..-2]
ARGV.shift
end
end
require_gem 'capistrano', version
load 'cap'

Any ideas on what to change to make it work?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to