Searched defs:repository (Results 1 - 10 of 10) sorted by relevance

/ontohub/app/controllers/
H A Ddiffs_controller.rb9 @message = repository.commit_message(oid)
20 def repository method in class:DiffsController
21 @repository ||= Repository.find_by_path!(params[:repository_id])
25 @commit_id ||= repository.commit_id(params[:ref])
33 authorize! :show, repository
H A Durl_maps_controller.rb3 belongs_to :repository, finder: :find_by_path!
9 create! { repository_url_maps_path(repository) }
13 update! { repository_url_maps_path(repository) }
17 destroy! { repository_url_maps_path(repository) }
30 helper_method :repository
31 def repository method in class:UrlMapsController
35 resource.repository
H A Drepository_directories_controller.rb4 helper_method :repository
24 def repository method in class:RepositoryDirectoriesController
25 @repository ||= resource.repository
35 url: fancy_repository_path(repository, path: resource.path),
50 authorize! :show, repository
54 authorize! :write, repository
H A Dontologies_controller.rb8 belongs_to :repository, finder: :find_by_path!
59 redirect_to [ontology.repository, ontology, params_to_pass_on_redirect]
126 @ontology.repository = parent
145 helper_method :repository
146 def repository method in class:OntologiesController
H A Dfiles_controller.rb5 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 method in class:FilesController
[all...]
/ontohub/app/helpers/
H A Dhistory_helper.rb2 def repository method in class:HistoryHelper
3 @repository ||= Repository.find_by_path!(params[:repository_id])
7 @ontology ||= repository.primary_ontology(path)
15 @commit_id ||= repository.commit_id(params[:ref])
/ontohub/app/controllers/api/v1/
H A Dcombinations_controller.rb3 belongs_to :repository, finder: :find_by_path!
25 build(current_user, repository, params[:combination])
29 args = [current_user.id, repository.id, params[:combination]]
39 def repository method in class:Api
44 authorize! :write, repository
/ontohub/lib/
H A Diri_url_builder.rb22 repository_id: repository)
43 def repository method in class:IRIUrlBuilder.Builder
44 ontology_version.ontology.repository
H A Dexternal_repository.rb11 repository_id: repository.id,
19 def repository method in class:ExternalRepository
25 repository.save_file_only(tmp_path, determine_path(iri, :fullpath),
30 "/#{repository.path}/#{determine_path(external_iri, :fullpath)}"
/ontohub/app/models/
H A Dontology.rb33 delegate :permission?, to: :repository
41 def repository method in class:Ontology
42 @repository ||= Repository.find(repository_id)
68 "/#{repository.path}/#{basepath}"
99 repository.delete_file(parent.path, user,
104 repository.delete_file(path, user,
117 if repository.is_destroying
177 repository.get_file(path)
201 if repository.is_head?(commit_oid)
204 repository
[all...]

Completed in 11 milliseconds