Ah, nevermind, I misread this.  `file.read` and not `File.read`.  =)

If you're in this section of code I suggesting changing the variable to be `yum_conf` or something a bit more descriptive than `file`.