Created
January 20, 2013 03:20
-
-
Save agoddard/4576483 to your computer and use it in GitHub Desktop.
using Log.fatal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if checksum == '7d2742255cf6d5b40ffad091b4f17f390619390e0cf0ad6c64cb5e6655a2f65e' | |
#file came from a package install, we gotta replace the file with a patched version | |
elsif checksum == 'dec8cb0448a046be98b6d7a57b57589fd25556d067a65f4ff9f7d2deb69a7b2e' | |
#file already patched, nothing to do | |
elsif checksum.nil? | |
#no file, nothing to do | |
else | |
Chef::Log.fatal("uh oh, what's this checksum? we should probably not replace the file until we know what's going on...") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the real recipe actually does stuff ;)