module WrataApi::FileListMethods

Methods to work with file tree

Public Instance Methods

file_list(project, ref = 'master') click to toggle source

Return list of files in specific project @param project [String] name of project @param ref [String] branch or hash of commit to get list of files @return [Array<String>] list of files

# File lib/wrata_api/file_tree.rb, line 10
def file_list(project, ref = 'master')
  uri = URI.parse("#{@uri}/runner/file_tree")
  body = {
    'flatten' => true,
    'project' => project,
    'refs' => ref
  }
  perform_get(uri, body)
end