Execute.define_task do desc "dtach_installed", "Check if dtach is installed.", :hide => true def dtach_installed if !windows? and (`which dtach` == '') puts "WARNING: dtach not installed or not on path, some tasks will not work!" puts " Install with '[sudo] rhoconnect dtach-install'" exit end end #dtach_installed end #do