Searched refs:Repository (Results 1 - 25 of 60) sorted by relevance

123

/ontohub/app/models/repository/
H A Dimport_error.rb1 class Repository::ImportError < IOError class
H A Dassociations_and_attributes.rb1 module Repository::AssociationsAndAttributes module
H A Ddestroying.rb1 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 Dimporting.rb9 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 Dvalidations.rb1 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 Drepository.rb1 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 Drepository_deletion_worker.rb5 Repository.destroying.find(id).destroy
H A Drepository_conversion_worker.rb7 Repository.find(repository_id).convert_to_local!
H A Drepository_fetching_worker.rb7 Repository.find(repository_id).fetch(method, remote_type)
H A Daccess_scopes_for_repository_associations.rb19 where(Repository::ACCESSIBLE_BY_SQL_QUERY, user, user)
H A Drepository_pulling_worker.rb12 Repository.outdated.find_each { |r| r.call_remote :pull }
H A Drepository_update_worker.rb14 OntologySaver.new(Repository.where(id: repo_id).first!).
/ontohub/db/seeds/
H A D050-url_maps.rb1 repository = Repository.first!
H A D040-git.rb2 repository = Repository.create! \
6 Repository.find_each do |o|
12 Repository.first.permissions.create! \
/ontohub/db/data/
H A D20160107154144_recreate_repository_symlinks.rb3 Repository.find_each do |repository|
10 Repository.find_each do |repository|
H A D20160426082023_recreate_symlinks.rb3 Repository.find_each do |repository|
9 Repository.find_each do |repository|
/ontohub/features/step_definitions/
H A Drepository_steps.rb1 When(/^I create a Repository with name "([^"]+)"$/) do |name|
/ontohub/app/controllers/
H A Durl_maps_controller.rb27 authorize! :show, Repository.find_by_path(params[:repository_id])
33 Repository.find_by_path(params[:repository_id])
H A Dhistory_controller.rb15 authorize! :show, Repository.find_by_path!(params[:repository_id])
H A Drepositories_controller.rb26 @repositories = Repository.accessible_by(current_user)
33 rescue Repository::DeleteError => e
46 redirect_to Repository
54 @repository ||= Repository.find_by_path(path)
H A Dhome_controller.rb10 @repositories = Repository.accessible_by(current_user).latest.limit(10)
/ontohub/spec/models/repository/
H A Dretry_failed_spec.rb3 describe Repository do
H A Dgit_spec.rb3 describe Repository do
/ontohub/app/helpers/
H A Dhistory_helper.rb3 @repository ||= Repository.find_by_path!(params[:repository_id])
/ontohub/spec/controllers/
H A Drepositories_controller_spec.rb16 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

Completed in 193 milliseconds

123