Skip to content

Commit

Permalink
add server ip rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
nevinsm committed Jun 12, 2024
1 parent d20053f commit 24b9e66
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/capistrano/tasks/server_ips.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace :server do
desc "Outputs the server IPs for the current stage"
task :ips do
on roles(:all) do |host|
puts host.hostname
end
end
end

0 comments on commit 24b9e66

Please sign in to comment.