Class: Danger::RemoteFinder
- Inherits:
-
Object
- Object
- Danger::RemoteFinder
- Defined in:
- lib/danger/ci_source/support/remote_finder.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(github_host, remote_logs) ⇒ RemoteFinder
constructor
A new instance of RemoteFinder.
Constructor Details
#initialize(github_host, remote_logs) ⇒ RemoteFinder
3 4 5 6 |
# File 'lib/danger/ci_source/support/remote_finder.rb', line 3 def initialize(github_host, remote_logs) @github_host = github_host @remote_logs = remote_logs end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/danger/ci_source/support/remote_finder.rb', line 8 def call remote_url_matches && remote_url_matches["repo_slug"] end |