Created
January 10, 2013 10:54
-
-
Save todesking/4501214 to your computer and use it in GitHub Desktop.
cap、定義されてるサーバ一覧表示するタスク
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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