Searched defs:path (Results 1 - 7 of 7) sorted by relevance

/ontohub/app/helpers/
H A Dhistory_helper.rb7 @ontology ||= repository.primary_ontology(path)
22 def path method in class:HistoryHelper
23 params[:path]
/ontohub/app/fake_records/
H A Drepository_directory.rb10 record.errors[:name] = 'Error! This path points to or through a file.'
12 record.errors[:name] = 'Error! This path already exists.'
37 repository.save_file(temp_file.path, File.join(target_path, '.gitkeep'),
60 path
63 def path method in class:RepositoryDirectory
/ontohub/lib/git_repository/
H A Dget_diff.rb25 def path method in class:GitRepository
30 delta.old_file[:path]
70 path = Pathname.new(delta.new_file[:path])
71 file_changes << FileChange.new(self, path.dirname, path.basename, delta)
/ontohub/lib/
H A Diri_url_builder.rb19 path: path,
25 # return path unless the basepath only consists of the filename
26 def path method in class:IRIUrlBuilder.Builder
27 path = File.dirname(ontology_version.basepath)
28 path if path != '.'
/ontohub/app/models/
H A Dontology_version.rb58 # TODO: This returns a path without the commit id and filename for now,
61 #Rails.application.routes.url_helpers.repository_ref_path(repository, commit_oid, ontology.path, params.reverse_merge(host: Ontohub::Application.config.fqdn, port: Ontohub::Application.config.port, only_path: false))
70 def path method in class:OntologyVersion
75 ontology.repository.get_file(path, commit_oid)
H A Dontology.rb68 "/#{repository.path}/#{basepath}"
99 repository.delete_file(parent.path, user,
104 repository.delete_file(path, user,
168 def path method
177 repository.get_file(path)
204 repository.path_exists?(path, commit_oid)
/ontohub/app/controllers/
H A Dfiles_controller.rb5 helper_method :repository, :ref, :oid, :path, :branch_name
11 send_download(path, oid)
19 send_download(path, oid)
24 send_download(path, oid)
28 render json: repository.entries_info(oid, path)
42 redirect_to fancy_repository_path(repository, path: resource.target_path)
52 flash[:success] = "Successfully changed the file #{params[:path]}."
53 redirect_to fancy_repository_path(repository, path: resource.target_path)
60 repository.delete_file(params[:path], current_user)
61 flash[:success] = "Successfully deleted the file #{params[:path]}
105 def path method in class:FilesController
[all...]

Completed in 23 milliseconds