Class: Job
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Job
- Includes:
- Cleanup
- Defined in:
- lib/travis/model/job.rb,
lib/travis/model/job/test.rb,
lib/travis/model/job/states.rb,
lib/travis/model/job/cleanup.rb,
lib/travis/model/job/tagging.rb,
lib/travis/model/job/configure.rb,
lib/travis/model/job/test/states.rb,
lib/travis/model/job/configure/states.rb
Defined Under Namespace
Modules: Cleanup, States, Tagging Classes: Configure, Test
Constant Summary
Constants included from Cleanup
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Cleanup
#enqueue, #force_finish, #requeueable?
Class Method Details
.queued ⇒ Object
11 12 13 |
# File 'lib/travis/model/job.rb', line 11 def queued where(:state => :created) end |
Instance Method Details
#matrix_config?(config) ⇒ Boolean
37 38 39 40 41 42 |
# File 'lib/travis/model/job.rb', line 37 def matrix_config?(config) config = config.to_hash.symbolize_keys Build.matrix_keys_for(config).map do |key| self.config[key.to_sym] == config[key] || commit.branch == config[key] end.inject(:&) end |