Lines Matching defs:repository
5 helper_method :repository, :ref, :oid, :path, :branch_name
16 redirect_to [repository, ontology]
28 render json: repository.entries_info(oid, path)
39 if ontology = repository.ontologies.with_path(resource.target_path).without_parent.first
42 redirect_to fancy_repository_path(repository, path: resource.target_path)
53 redirect_to fancy_repository_path(repository, path: resource.target_path)
60 repository.delete_file(params[:path], current_user)
62 redirect_to(fancy_repository_path(repository,
63 path: repository.deepest_existing_dir(params[:path])))
72 def repository
73 @repository ||= Repository.find_by_path!(params[:repository_id])
81 authorize! :show, repository
85 authorize! :write, repository
89 render text: repository.get_file(path, oid).content,
94 @commit_id ||= repository.commit_id(params[:ref])