Skip to content

Instantly share code, notes, and snippets.

@slumos
Created October 15, 2009 22:38
Show Gist options
  • Select an option

  • Save slumos/211355 to your computer and use it in GitHub Desktop.

Select an option

Save slumos/211355 to your computer and use it in GitHub Desktop.
diff --git a/config/deploy.rb b/config/deploy.rb
index eccacbd..a0b2a72 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -116,3 +116,9 @@ namespace :memcached do
sudo "/etc/init.d/god start"
end
end
+
+namespace :info do
+ task :servers do
+ find_servers_for_task(current_task).each {|s| puts s}
+ end
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment