Forum: Ruby on Rails Capistrano - run command

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9904f8acaf66a3c1a4b4434676be11cf?d=identicon&s=25 John Kopanas (Guest)
on 2006-03-22 01:31
(Received via mailing list)
Man, I can't wait to get my hands on the capistrano book when it
comes out :-).

I have the following task in capistrano.rake (any task in deploy.rb
just does not want to be called)

=========
desc "Restarts the lighttpd server"
task :restart_server do
   run "/users/home/jkopanas/bin/lighttpdctrl restart"
end
=========

When I run rake restart_server I get the following errror:

=========
undefined method `run' for #<Object:0x1de968>
=========

According to documentation and examples I should be able to use run
with no problem to execute commands on the server.  How come I am
getting an error.

Insight is greatly appreciated.

Your Friend,

John Kopanas
992fe8c19bbbc27f2b562a9f96efc03d?d=identicon&s=25 Jamis Buck (Guest)
on 2006-03-22 06:25
(Received via mailing list)
See the email I just sent in reply to your other message. :) The
problem is that you are confusing rake and capistrano tasks. The two
are not compatible, though they have similar syntaxes.

- Jamis
This topic is locked and can not be replied to.