Class: Danger::FindRepoInfoFromLogs

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

Instance Method Summary collapse

Constructor Details

#initialize(github_host, remote_logs) ⇒ FindRepoInfoFromLogs

Returns a new instance of FindRepoInfoFromLogs.



5
6
7
8
# File 'lib/danger/ci_source/support/find_repo_info_from_logs.rb', line 5

def initialize(github_host, remote_logs)
  @github_host = github_host
  @remote_logs = remote_logs
end

Instance Method Details

#callObject



10
11
12
13
14
15
16
# File 'lib/danger/ci_source/support/find_repo_info_from_logs.rb', line 10

def call
  matched = remote.match(regexp)

  if matched
    RepoInfo.new(matched["repo_slug"], nil)
  end
end