The task relies on Ping, which was removed since Ruby 1.9. I've moved it to rely on net-ping instead. Notice the ping now relies on the 'ping' binary being in the foreman user path for this to work with foreman-rake
Related issues
Bug #17837: foreman-rake hosts:scan_out_of_sync fails with "LoadError: cannot load such file -- ping"
Fixes #17837 - Fix hosts:scan_out_of_sync task
The task relies on Ping, which was removed since Ruby 1.9. I've moved it
to rely on net-ping instead. Notice the ping now relies on the 'ping'
binary being in the foreman user path for this to work with foreman-rake