Ruby script to facilitate snapraid