mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
8 lines
134 B
Ruby
8 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
|