Method: Dri::ApiClient#get_file

Defined in:
lib/dri/api_client.rb

#get_file(path, ref:, project_id:) ⇒ Gitlab::ObjectifiedHash

Fetches file contents at <path>

Parameters:

  • path (String)
  • ref (String)
  • project_id (Integer)

Returns:

  • (Gitlab::ObjectifiedHash)


307
308
309
# File 'lib/dri/api_client.rb', line 307

def get_file(path, ref:, project_id:)
  gitlab.get_file(project_id, path, ref)
end