Created
July 18, 2013 00:15
-
-
Save Sauraus/6025735 to your computer and use it in GitHub Desktop.
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 provider | |
# Verify that the given provider matches what the box has. | |
if box_provider.to_sym != provider | |
@logger.error("Added box provider doesnt match expected: #{box_provider}") | |
raise Errors::BoxProviderDoesntMatch, :expected => provider, :actual => box_provider | |
end | |
else | |
# We weren't given a provider, so store this one. | |
provider = box_provider.to_sym | |
# Verify the box doesn't already exist | |
check_box_exists.call(provider) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment