/ontohub/app/models/repository/ |
H A D | import_error.rb | 1 class Repository::ImportError < IOError class
|
H A D | associations_and_attributes.rb | 1 module Repository::AssociationsAndAttributes module
|
H A D | destroying.rb | 1 module Repository::Destroying module 11 repository = Repository.find_by_path(path) 12 repository if user.owned_ids('Repository').include?(repository.id) 41 raise Repository::DeleteError, I18n.t('repository.delete_error')
|
H A D | importing.rb | 9 module Repository::Importing module 98 raise Repository::ImportError, "#{source} is not a #{type} repository" 105 Repository::Access.as_read_only(params[:access]) : 106 Repository::Access::DEFAULT_OPTION 108 r = Repository.new(params)
|
H A D | validations.rb | 1 module Repository::Validations module 22 validates :state, inclusion: {in: Repository::Importing::STATES} 29 inclusion: {in: Repository::Access::OPTIONS}, 33 inclusion: {in: Repository::Access::OPTIONS_MIRROR}, 103 if Repository::Importing::REMOTE_TYPES.include?(record.remote_type) && 119 "(types supported: #{Repository::SOURCE_TYPES.join(', ')})"
|
/ontohub/app/models/ |
H A D | repository.rb | 1 class Repository < ActiveRecord::Base class 3 include Repository::Access 4 include Repository::AssociationsAndAttributes 5 include Repository::Destroying 6 include Repository::Git 7 include Repository::Importing 8 include Repository::Ontologies 9 include Repository::Scopes 10 include Repository::Symlinks 11 include Repository [all...] |
/ontohub/lib/ |
H A D | repository_deletion_worker.rb | 5 Repository.destroying.find(id).destroy
|
H A D | repository_conversion_worker.rb | 7 Repository.find(repository_id).convert_to_local!
|
H A D | repository_fetching_worker.rb | 7 Repository.find(repository_id).fetch(method, remote_type)
|
H A D | access_scopes_for_repository_associations.rb | 19 where(Repository::ACCESSIBLE_BY_SQL_QUERY, user, user)
|
H A D | repository_pulling_worker.rb | 12 Repository.outdated.find_each { |r| r.call_remote :pull }
|
H A D | repository_update_worker.rb | 14 OntologySaver.new(Repository.where(id: repo_id).first!).
|
/ontohub/db/seeds/ |
H A D | 050-url_maps.rb | 1 repository = Repository.first!
|
H A D | 040-git.rb | 2 repository = Repository.create! \ 6 Repository.find_each do |o| 12 Repository.first.permissions.create! \
|
/ontohub/db/data/ |
H A D | 20160107154144_recreate_repository_symlinks.rb | 3 Repository.find_each do |repository| 10 Repository.find_each do |repository|
|
H A D | 20160426082023_recreate_symlinks.rb | 3 Repository.find_each do |repository| 9 Repository.find_each do |repository|
|
/ontohub/features/step_definitions/ |
H A D | repository_steps.rb | 1 When(/^I create a Repository with name "([^"]+)"$/) do |name|
|
/ontohub/app/controllers/ |
H A D | url_maps_controller.rb | 27 authorize! :show, Repository.find_by_path(params[:repository_id]) 33 Repository.find_by_path(params[:repository_id])
|
H A D | history_controller.rb | 15 authorize! :show, Repository.find_by_path!(params[:repository_id])
|
H A D | repositories_controller.rb | 26 @repositories = Repository.accessible_by(current_user) 33 rescue Repository::DeleteError => e 46 redirect_to Repository 54 @repository ||= Repository.find_by_path(path)
|
H A D | home_controller.rb | 10 @repositories = Repository.accessible_by(current_user).latest.limit(10)
|
/ontohub/spec/models/repository/ |
H A D | retry_failed_spec.rb | 3 describe Repository do
|
H A D | git_spec.rb | 3 describe Repository do
|
/ontohub/app/helpers/ |
H A D | history_helper.rb | 3 @repository ||= Repository.find_by_path!(params[:repository_id])
|
/ontohub/spec/controllers/ |
H A D | repositories_controller_spec.rb | 16 it{ response.should redirect_to Repository } 37 context 'Repository instance' do 81 it { response.should redirect_to Repository.find_by_path('repo') } 83 expect(Repository.find_by_path('repo').mirror?).to be_truthy 95 it { response.should redirect_to Repository.find_by_path('repo') } 97 expect(Repository.find_by_path('repo').mirror?).to be_falsy
|