Remote Rake Tasks with Capistrano (://URLFAN)

How popular is your website?  
Enter a website above, we'll show you who's talking about it right now.
We're currently ranking the popularity of 3,783,534 websites by parsing 121,721,403 blog posts from 2,027,454 blog feeds.
Article Structure
18 paragraphs
6702 characters
0 images
6 outgoing links

Remote Rake Tasks with Capistrano

Post Date: Dec 30, 2007 7:42 a.m.
Ranked website: ananelson.com (Not Ranked Yet)

For full text please visit source:
http://ananelson.com/said/on/2007/12/30/remote-rake-tasks-with-capistr...


Here’s the punch line: namespace :rake do task :show_tasks do run("cd #{deploy_to}/current; /usr/bin/rake -T") end end This is a Capistrano task which invokes Rake on the remote server. It’s the obvious answer to a problem which has been vexing me for weeks. I’ve been trying, without success, to convert a nice little Rake task require ’lib/hodel_3000_compliant_logger’ namespace :log do desc "Annotate the logfile with a message. Options LOGFILE=xxx, MSG=xxx" task :annotate do logfile = ENV[’LOGFILE’] || "log/production.log" puts "annotating #{logfile} with #{ENV[’MSG’]}" logger = Hodel3000CompliantLogger.new(logfile) logger.debug "ANN_#{ENV[’MSG’].to_s} (at #{Time.now.strftime("%Y-%m-%d %H:%M:%S")})" end end WTF Why? into a Capistrano task so that I could run it on the remote server. Yes, I can hear some of you laughing...

Content suppressed by ://URLFAN, for full article visit source

Websites mentioned in article
(click for rank details):

capify.org
rake.rubyforge.org
skitch.com
rubyhitsquad.com
railsmachine.com
pastie.caboo.se

Buzz Words mentioned in article:

No buzz words were found in article
How popular is ananelson.com?

Click here to view stats and graphs for ananelson.com


More posts from ananelson.com

Can your DNS do this?
From: ananelson.com
Post Date: 2008-01-12 08:25:14

The internet is all about instant gratification. That goes for producers as well as consumers. Generally the biggest shock a novice web developer will experience is when they realize that their shiny new domain won’t be accessible for up to 2 days. 2 days? DAYS? That’s an eternity on the web. Not only do you have to wait, but you have to wait an unpredictable amount of time, and just because the domain name has propagated to you doesn’t mean the rest of the world will be able ... more
Screencasts are so 2005
From: ananelson.com
Post Date: 2007-12-17 14:37:03

Update: you don’t need Skitch invites anymore, just sign up . Screencasts are powerful things. I’m one of the many people who discovered Rails (yes, and TextMate) thanks to the original screencast. My first encounter with online screencasts was a little earlier, the company Marketcircle produced excellent screencast tutorials for DayLite , their productivity application (and one of the best OSX apps ever). This was a novelty at the time, and very effective. The... more
Microsoft’s Inner Geek is Showing
From: ananelson.com
Post Date: 2007-12-13 15:54:25

If you’re like me, you will have completely ignored the many announcements about Silverlight , Microsoft’s new framework for media-rich web applications. A few positive reports from unexpected sources did reach my ears, but they weren’t really enough to broach the Microsoft-impermeable membrane which has built up over the years. Even if I had been lucky enough to get to RubyConf this year, I probably would have skipped the IronRuby presentation . So, I was surprised to fin... more


Next Article | Previous Article


Feeds and posts are not affliated with ://URLFAN. They are displayed here simply for informational purposes, if you would like to remove your feed, posts, or domain from ranking and analysis, please contact us.

© 2006-2008 ://URLFAN (Server 202 Generated Nov 22 08 14:46 in 0.408 secs.)

Contact Us / About ://URLFAN / Notify me when my site is added or updated. / Add my RSS feed to ://URLFAN