Method: Gitlab::Client::RepositoryFiles#get_file
- Defined in:
- lib/gitlab/client/repository_files.rb
#get_file(project, file_path, ref) ⇒ Gitlab::ObjectifiedHash
Gets a repository file.
16 17 18 19 20 21 |
# File 'lib/gitlab/client/repository_files.rb', line 16 def get_file(project, file_path, ref) get("/projects/#{project}/repository/files", query: { file_path: file_path, ref: ref, }) end |