File: root.rake

package info (click to toggle)
capistrano 3.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 804 kB
  • sloc: ruby: 5,351; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
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