task :foo do exec "echo 'foo'" end task :foobar => :foo do exec "echo 'bar'" end task :broken => :foo do exec "notacommand" end task :sudo do exec "sudo echo 'this is a sudo echo'" end task :install do install "git" end