Class: Danger::RemoteFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/danger/ci_source/support/remote_finder.rb

Instance Method Summary collapse

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

#callObject



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