Class: Gitlab::CodeNavigationPath

Inherits:
Object
  • Object
show all
Includes:
Routing, Utils::StrongMemoize
Defined in:
lib/gitlab/code_navigation_path.rb

Constant Summary collapse

LATEST_COMMITS_LIMIT =
2

Instance Method Summary collapse

Methods included from Routing

includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

#initialize(project, commit_sha) ⇒ CodeNavigationPath

Returns a new instance of CodeNavigationPath.



10
11
12
13
# File 'lib/gitlab/code_navigation_path.rb', line 10

def initialize(project, commit_sha)
  @project = project
  @commit_sha = commit_sha
end

Instance Method Details

#full_json_path_for(path) ⇒ Object



15
16
17
18
19
# File 'lib/gitlab/code_navigation_path.rb', line 15

def full_json_path_for(path)
  return unless build

  raw_project_job_artifacts_path(project, build, path: "lsif/#{path}.json", file_type: :lsif)
end