1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/spec/support/tasks/root.rake
Nick Townsend 837eaca8b1 Copy the servers yielded to on()
This allows the SSH connection attributes to be temporarily overridden
2015-02-13 17:11:26 -08:00

7 lines
134 B
Ruby

task :am_i_root do
on roles(:all) do |host|
host.user = 'root'
ident = capture :id, '-a'
info "I am #{ident}"
end
end