Skip to content

Instantly share code, notes, and snippets.

@todesking
Created January 10, 2013 10:54
Show Gist options
  • Save todesking/4501214 to your computer and use it in GitHub Desktop.
Save todesking/4501214 to your computer and use it in GitHub Desktop.
cap、定義されてるサーバ一覧表示するタスク
task :server_list do
roles.each do|name, role|
role.each do|server|
puts "%10s %13s %s" % [name, server, server.options.inspect]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment