Created
December 9, 2010 17:24
-
-
Save codesnik/735013 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def pnr_commit_really_hard | |
yield | |
result = pnr_commit_and_retrieve | |
# закоммитить такое не удастся. надо повторять | |
if result.message == "SIMULTANEOUS CHANGES TO PNR - USE WRA/RT TO PRINT OR IGNORE" | |
pnr_ignore_and_retrieve | |
yield | |
result = pnr_commit_and_retrieve | |
end | |
# ER;ER трюк - двойной коммит для обхода ворнингов | |
unless result.success? | |
pnr_commit_and_retrieve | |
end | |
# если и сейчас не вышло - не судьба! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment