Class: ForemanMco::CommandStatus
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ForemanMco::CommandStatus
- Includes:
- Taxonomix
- Defined in:
- app/models/foreman_mco/command_status.rb
Constant Summary collapse
- PENDING =
"pending"
- SUCCESS =
"success"
- WARNING =
"warning"
- FAILURE =
"failure"
- TYPES =
[PENDING, SUCCESS, WARNING, FAILURE]
Instance Method Summary collapse
Instance Method Details
#set_default_status ⇒ Object
24 25 26 |
# File 'app/models/foreman_mco/command_status.rb', line 24 def set_default_status self.status = PENDING if new_record? end |