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
Chad Shaffer d6f4499ee8 Address all rubocop lint warnings
* (File, Dir).exists? -> (File, Dir).exist?
* Prepend unused parameter names with an underscore
* Prefer “safe assignment in condition”
* Disambiguate splat operators with parens
* Remove unnecessary assignments (unused variables)
* No longer shadow Vagrant config variable name in Vagrantfile
* Removed some trailing whitespace

Fixes #1404
2015-08-14 14:21:34 -07:00

11 lines
223 B
Ruby

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