Created
September 21, 2017 10:18
-
-
Save shkrt/f505801c17fdef061df8da898259d591 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
def match_host(issue_url) | |
Matchers::GitHost.(issue_url) do |m| | |
m.success(:github) { |issue_data| Services::GithubIssueRequester.(issue_data) } | |
m.success(:gitlab) { |issue_data| Services::GitlabIssueRequester.(issue_data) } | |
m.failure do | |
error('invalid url') | |
INVALID_URL_ERROR | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment