Class: UffizziCore::Build
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- UffizziCore::Build
- Includes:
- BuildRepo
- Defined in:
- app/models/uffizzi_core/build.rb
Constant Summary collapse
- BUILDING =
1
- SUCCESS =
2
- FAILED =
3
- TIMEOUT =
4
- CANCELLED =
5
Instance Method Summary collapse
- #building? ⇒ Boolean
- #cancelled? ⇒ Boolean
- #failed? ⇒ Boolean
- #successful? ⇒ Boolean
- #timed_out? ⇒ Boolean
- #unsuccessful? ⇒ Boolean
Instance Method Details
#building? ⇒ Boolean
28 29 30 |
# File 'app/models/uffizzi_core/build.rb', line 28 def building? status == BUILDING end |
#cancelled? ⇒ Boolean
36 37 38 |
# File 'app/models/uffizzi_core/build.rb', line 36 def cancelled? status == CANCELLED end |
#failed? ⇒ Boolean
24 25 26 |
# File 'app/models/uffizzi_core/build.rb', line 24 def failed? status == FAILED end |
#successful? ⇒ Boolean
16 17 18 |
# File 'app/models/uffizzi_core/build.rb', line 16 def successful? status == SUCCESS end |
#timed_out? ⇒ Boolean
32 33 34 |
# File 'app/models/uffizzi_core/build.rb', line 32 def timed_out? status == TIMEOUT end |