Searched refs:action (Results 1 - 25 of 48) sorted by relevance

12

/ontohub/spec/models/
H A Daction_spec.rb5 let(:action) { create :action }
6 let(:target) { action.action_started_at + action.eta }
9 expect(action.eta(action.created_at).to_i).
10 to eq(action.initial_eta)
14 expect(action.eta(target - 1).to_i).to eq(1)
18 expect(action.eta(target + 5.minutes)).to eq(0)
21 it 'should return initial eta when action ha
[all...]
/ontohub/lib/
H A Daction_worker.rb5 action = Action.find(action_id)
6 action.register_start_of_action
7 action.resource = klass.constantize.send(method, *args)
8 action.save!
/ontohub/spec/routing/admin/
H A Dusers_routing_spec.rb6 controller: :'admin/users', action: :index)
11 controller: :'admin/users', action: :create)
16 controller: :'admin/users', action: :new)
21 controller: :'admin/users', action: :edit, id: 123)
26 controller: :'admin/users', action: :show, id: 123)
31 controller: :'admin/users', action: :update, id: 123)
36 controller: :'admin/users', action: :destroy, id: 123)
H A Dteams_routing_spec.rb6 controller: :'admin/teams', action: :index)
/ontohub/spec/routing/
H A Drepository_directories_routing_spec.rb5 to(controller: 'repository_directories', action: :create, repository_id: 'repopath' ) }
H A Dcomments_routing_spec.rb6 to(action: :index, ontology_id: 'ontology_id', repository_id: 'repository_id') }
8 to(action: :create, ontology_id: 'ontology_id', repository_id: 'repository_id') }
H A Durl_maps_routing_spec.rb4 it { should route(:get, 'repositories/repopath/url_maps' ).to(repository_id: 'repopath', action: :index ) }
5 it { should route(:post, 'repositories/repopath/url_maps' ).to(repository_id: 'repopath', action: :create ) }
6 it { should route(:get, 'repositories/repopath/url_maps/new' ).to(repository_id: 'repopath', action: :new ) }
7 it { should route(:get, 'repositories/repopath/url_maps/2/edit').to(repository_id: 'repopath', id: 2, action: :edit ) }
8 it { should route(:put, 'repositories/repopath/url_maps/2' ).to(repository_id: 'repopath', id: 2, action: :update ) }
9 it { should route(:delete, 'repositories/repopath/url_maps/2' ).to(repository_id: 'repopath', id: 2, action: :destroy ) }
H A Dlanguage_adjoint_routing_spec.rb6 controller: :language_adjoints, action: :index)
11 controller: :language_adjoints, action: :create)
16 controller: :language_adjoints, action: :new)
21 controller: :language_adjoints, action: :edit, id: 123)
26 controller: :language_adjoints, action: :show, id: 123)
31 controller: :language_adjoints, action: :update, id: 123)
36 controller: :language_adjoints, action: :destroy, id: 123)
H A Dlanguage_mappings_routing_spec.rb6 controller: :language_mappings, action: :index)
11 controller: :language_mappings, action: :create)
16 controller: :language_mappings, action: :new)
21 controller: :language_mappings, action: :edit, id: 123)
26 controller: :language_mappings, action: :show, id: 123)
31 controller: :language_mappings, action: :update, id: 123)
36 controller: :language_mappings, action: :destroy, id: 123)
H A Dlogic_adjoint_routing_spec.rb6 controller: :logic_adjoints, action: :index)
11 controller: :logic_adjoints, action: :create)
16 controller: :logic_adjoints, action: :new)
21 controller: :logic_adjoints, action: :edit, id: 123)
26 controller: :logic_adjoints, action: :show, id: 123)
31 controller: :logic_adjoints, action: :update, id: 123)
36 controller: :logic_adjoints, action: :destroy, id: 123)
H A Dontologies_routing_spec.rb6 repository_id: 'repopath', action: :retry_failed)
11 repository_id: 'repopath', action: :retry_failed, id: 'id')
16 controller: :ontologies, action: :index,
22 controller: :ontologies, action: :edit,
28 controller: :ontologies, action: :show,
34 controller: :ontologies, action: :update,
40 controller: :ontologies, action: :destroy,
H A Drepositories_routing_spec.rb6 controller: :repositories, action: :index)
11 controller: :repositories, action: :create)
16 controller: :repositories, action: :new)
21 controller: :repositories, action: :edit, id: 'my_repo')
26 controller: :repositories, action: :show, id: 'id')
31 controller: :repositories, action: :update, id: 'my_repo')
36 controller: :repositories, action: :destroy, id: 'my_repo')
H A Dserializations_routing_spec.rb6 controller: :serializations, action: :index)
11 controller: :serializations, action: :create)
16 controller: :serializations, action: :new)
21 controller: :serializations, action: :edit, id: 123)
26 controller: :serializations, action: :show, id: 123)
31 controller: :serializations, action: :update, id: 123)
36 controller: :serializations, action: :destroy, id: 123)
H A Dteams_routing_spec.rb6 controller: :teams, action: :index)
11 controller: :teams, action: :create)
16 controller: :teams, action: :new)
21 controller: :teams, action: :edit, id: 123)
26 controller: :teams, action: :show, id: 123)
31 controller: :teams, action: :update, id: 123)
36 controller: :teams, action: :destroy, id: 123)
H A Dlogic_mappings_routing_spec.rb6 controller: :logic_mappings, action: :index)
11 controller: :logic_mappings, action: :create)
16 controller: :logic_mappings, action: :new)
21 controller: :logic_mappings, action: :edit, id: 'my_logic_mapping')
26 controller: :logic_mappings, action: :show, id: 'my_logic_mapping')
31 controller: :logic_mappings, action: :update, id: 'my_logic_mapping')
36 controller: :logic_mappings, action: :destroy, id: 'my_logic_mapping')
H A Doops_requests_routing_spec.rb7 controller: :oops_requests, action: :show,
14 controller: :oops_requests, action: :create,
H A Dfiles_routing_spec.rb14 it { should route(:get, 'repopath' ).to(repository_id: 'repopath', controller: :files, action: :show ) }
15 it { should route(:get, 'repopath/some/path' ).to(repository_id: 'repopath', controller: :files, action: :show, path: 'some/path') }
16 it { should route(:get, 'repositories/repopath/files/new' ).to(repository_id: 'repopath', controller: :files, action: :new ) }
17 it { should route(:post, 'repositories/repopath/files' ).to(repository_id: 'repopath', controller: :files, action: :create ) }
18 it { should route(:get, 'repositories/repopath/12ab/action' ).to(repository_id: 'repopath', controller: :files, action: :action, ref: '12ab' ) }
19 it { should route(:get, 'repositories/repopath/12ab/files/some/path' ).to(repository_id: 'repopath', controller: :files, action: :show, ref: '12ab', path: 'some/path' ) }
20 it { should route(:delete, 'repopath/some/path' ).to(repository_id: 'repopath', controller: :files, action: :destroy, path: 'some/path') }
H A Dautocomplete_routing_spec.rb6 to(controller: :autocomplete, action: :index)
H A Ddiffs_routing_spec.rb6 controller: :diffs, action: :show,
H A Dgraphs_routing_spec.rb6 controller: :graphs, action: :index, logic_id: 'id')
H A Dhistory_routing_spec.rb4 it { should route(:get, 'repositories/repopath/master/history').to(repository_id: 'repopath', controller: :history, action: :show, ref: 'master' ) }
H A Dhome_routing_spec.rb4 it { should route(:get, '/').to(controller: :home, action: :index) }
H A Dkeys_routing_spec.rb4 it { should route(:get, "keys").to(:controller=> :keys, :action => :index) }
/ontohub/spec/factories/
H A Daction_factory.rb2 factory(:action) do
/ontohub/app/controllers/
H A Dpath_helpers.rb14 action = args[:action] || :show
15 if !in_ref_path? && action == :show && !args[:exact_commit]
18 repository_ref_path repository_id: repository, ref: args[:ref], action: action, path: args[:path]

Completed in 11 milliseconds

12